Using XPath Against A Node
- From: "Derek Hart" <derekmhart@xxxxxxxxx>
- Date: Tue, 5 Dec 2006 14:54:11 -0800
I bring in an xml file into vb.net by using xmlDoc.LoadXml(XMLString) - I
run xpath statements against the xml file to grab data from it, so I use, as
an example, //Vehicles/Vehicles/@make to get the make of the car. But then
I pass a specific node from xmlDoc into another function, not the whole
xmlDoc, just a node from it. And if I run an xpath against it, I have to
use .// (has a period at the beginning) so it does not grab info from the
parent. So I would have to use .//Vehicles/Vehicles/@make so it references
the current node. I would think that if I passed a node to a vb.net
function, I could simply use an xpath statement that would work off the
passed in node, and I could assume that the top part of that node was the
new parent. Is there a way to pass a node like this?
Derek
.
- Follow-Ups:
- Re: Using XPath Against A Node
- From: FishingScout
- Re: Using XPath Against A Node
- Prev by Date: Re: Is there some way to tell the debugger not to stop at WndProc?
- Next by Date: Re: Confusing Arraylist BinarySearch problem
- Previous by thread: Re: how to use table in a dataset as data source for combobox?
- Next by thread: Re: Using XPath Against A Node
- Index(es):
Loading