wood burning stoves 2.0*
The moose likes XML and Related Technologies and the fly likes problem in getting xpath of each node. Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Engineering » XML and Related Technologies
Bookmark "problem in getting xpath of each node." Watch "problem in getting xpath of each node." New topic

problem in getting xpath of each node.

Aditi Gandy
Ranch Hand

Joined: Apr 23, 2008
Posts: 37
I would like to get xpath of each element in xml document.
I have written the code, but the last element's number is
getting incremented where i want that to start from [0].

Can anyone please help me?

My code as follows:

my java program is:

I need to read xml data and put it on the browser. I thought frist i will get xpath of all the elements and get its value calling xpath from my another java program.

Is there any better way to do it ? please suggest me?!

Please help

Thanks & Regards,
I agree. Here's the link: http://aspose.com/file-tools
subject: problem in getting xpath of each node.
Similar Threads
Reading XML file to populate text fields
SAX Parser Resource (Memory & Swap Space)
Getting Node Value using SAX
SAX problem
Bind Variable?