query subsubtag in Document

xjirxqwyfr

New Member
I have a XML Document like this:\[code\]...<sometag> <subtag> <subsubtag someattr="foo" /> <subsubtag someattr="bla" /> <subsubtag someattr="bar" /> </subtag></sometag>...\[/code\]i have it in an \[code\]org.w3c.dom.Document\[/code\] and now need to get all \[code\]subsubtag\[/code\] inside a \[code\]subtag\[/code\] inside a \[code\]sometag\[/code\]. Currently i query for all nodes that are a \[code\]sometag\[/code\], get all childs that are \[code\]subtag\[/code\], get all childs from here and so on...i cant query directly for all subsubtag because they can be listed on other places in the document too.is there any faster way?
 
Back
Top