Hello,
I am having the following XML file:
-----
<bibRecords xmlns="http://tempuri.org/bibrecords.xsd">
<bibRecord>
<entryID>1</entryID>
<tag>Shioura97</tag>
<entrytype>Conference Proceedings</entrytype>
</bibRecord>
</bibRecord>
------
Dim oNode As Xml.XmlNodeList
oNodes = xmldoc.SelectNodes("/bibRecords/bibRecord[entryID='1']")
The above 2 lines is returning oNodes.count=0, whereas the following line:
oNodes = xmldoc.GetElementsByTagName("bibRecord")
is returning oNodes.count=1 as expected. Seems like I am making some stupid mistake in the Xpath query, or may be missing something. Can somebody point it out?
Thanks and regards,

Signature
Samik Raychaudhuri
University of Wisconsin, Madison
To email me, replace 'K' with 'e' in the 'From' field.
Samik Raychaudhuri - 28 Jul 2003 01:21 GMT
Well, the solution is more stupid :-( I had to remove the xmlns="http://tempuri.org/bibrecords.xsd" part from first line. Anybody knows why this was the problem?
-Samik
> Hello,
> I am having the following XML file:
[quoted text clipped - 19 lines]
> somebody point it out?
> Thanks and regards,