Hi I have an xml document like this
<root>
<cert id="1">
</cert>
<cert id="2">
</cert>
<cert id="3">
</cert>
</root>
now I get a request and want to select the cert with id 2 and want to return it in a function. What is the best way to do this? I thought about XPAth Expression, how can I use them in java? What would be the best output (return value).
Thanks in advance
Sebastian