posted 19 years ago
The problem is that a given node may have several different XPaths to get to it. For example, take the following XML:
The node containing "bob" could be reached by several different XPaths:
and so on.
There may be tools out there to provide XPaths for a particular node, but it may just be simpler to write your own method - that way you can get the exact XPath that you want. Besides, this seems like a bit of an odd way to go about things - normally XPaths are used to find a node, not the other way around!
[ March 31, 2005: Message edited by: Dave Lenton ]
There will be glitches in my transition from being a saloon bar sage to a world statesman. - Tony Banks