Hi, the problem is:
XmlReader xmlReader = XmlReader.Creat e("D:\\temp\\Ex ample.html");
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xml Reader);
XmlNodeList list = xmlDoc.SelectNo des("/html/head/title");
after this... list.Count is 0, but when I delete xmlns attribute (Example2.html, list.Count is 1...
but I want list.Count == 1 result for Example.html, too ...so what I have to do ?
Example.html:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>sa</title>
</head>
<body>
bbbb
</body>
</html>
Example2.html:
<html>
<head>
<title>sa</title>
</head>
<body>
bbbb
</body>
</html>
XmlReader xmlReader = XmlReader.Creat e("D:\\temp\\Ex ample.html");
XmlDocument xmlDoc = new XmlDocument();
xmlDoc.Load(xml Reader);
XmlNodeList list = xmlDoc.SelectNo des("/html/head/title");
after this... list.Count is 0, but when I delete xmlns attribute (Example2.html, list.Count is 1...
but I want list.Count == 1 result for Example.html, too ...so what I have to do ?
Example.html:
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>sa</title>
</head>
<body>
bbbb
</body>
</html>
Example2.html:
<html>
<head>
<title>sa</title>
</head>
<body>
bbbb
</body>
</html>
Comment