JAVA XML, find recursively

annetterain

New Member
I need to find recursively xml Node by id in something like this:\[code\]<categories> <category id="1"> </category> <category id="2"> <category id="3"> </category> <category id="4"> <category id="5"> </category> </category> </category></categories>\[/code\]I'm using DocBuilder.I know that there is method \[code\]getElementById()\[/code\], but it doesn't work in my situation, where let's say, that I want to find an element with \[code\]id="5"\[/code\], when I am in the root node.Is it possible ?
 
Back
Top