While there are an infinite number of xpaths that represent any arbitrary
node, one can be built by walking up the tree, at each level appending
nodename[x] where x is the index of the child among it's same-named
siblings.
----- Original Message -----
From: "Shah Asrani" <[EMAIL PROTECTED]>
To: <j-users@xerces.apache.org>
Sent: Tuesday, December 09, 2008 12:56 PM
Subject: xpath question
If I have a DOM tree available, is it possible to return the xpath
string required for selected node.
Shah Asrani
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]