Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations biv343 on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to find exact node in XML document without knowing full path

Status
Not open for further replies.

watarski

Programmer
Apr 15, 2003
1
US
I am 3 days into my XML education. I am currently trying to use XML documentation with Visual Basic 6 for file I/O (I am using MSXML 4.0). I am having trouble finding the appropriate method that will allow me to search the tree for the desired node/element without having to know the exact path. I have been told to check out SAX, but am still having difficulty. If anyone knows of any parsing code samples I could find, that would be great. Any help is appreciated-
Thanks,
Craig
 
A valid XPath statement would be

Code:
//foo

And will find all <foo> elements in the document. So you end up with a list of elements if there are more than one in the document. So to get to a specific element of many you have to have some means of determining that.

-pete

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top