Re: xpath question

2008-12-10 Thread Shah Asrani
Thanks for the guidance. I tried walking though the built DOM tree and I can now create xpath expressions. Shah Asrani On Tue, Dec 9, 2008 at 1:37 PM, Michael Glavassevich <[EMAIL PROTECTED]> wrote: > There's no method in the API that returns an XPath, if that's what you're > asking. You would n

Re: xpath question

2008-12-09 Thread Dave Brosius
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]>

Re: xpath question

2008-12-09 Thread Michael Glavassevich
There's no method in the API that returns an XPath, if that's what you're asking. You would need to construct it yourself by walking the tree. Should be fairly simple. Michael Glavassevich XML Parser Development IBM Toronto Lab E-mail: [EMAIL PROTECTED] E-mail: [EMAIL PROTECTED] "Shah Asrani" <[E