Hi All,

I am parsing an xml file using digester. This xml file has structure as
follows

<parents>
<parent id = 1>
<child1></child1>
<child2></child2>
</parent>
<parent id = 2>
<child1></child1>
<child2></child2>
</parent>
</parents>

This xml file would have many parent elements, but with unique ids. I want
to know if I can query such an xml file by id and get only the parent with
the queried id..?
If yes kindly give me a hint or a small example.
Any help appreciated.


Cheers,
Amit

Reply via email to