I have a XML Document like this:
...
<sometag>
<subtag>
<subsubtag someattr="foo" />
<subsubtag someattr="bla" />
<subsubtag someattr="bar" />
</subtag>
</sometag>
...
i have it in an org.w3c.dom.Document
and now need to get all subsubtag
inside a subtag
inside a sometag
. Currently i query for all nodes that are a sometag
, get all childs that are subtag
, 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?