Read xml using xpath in java
843834Jul 24 2004 — edited Jul 24 2004Hi ALL,
I have a xml as follows:
<AAA>
<BBB>
<CCC>xyz</CCC>
<DDD>abc</DDD>
</BBB>
</AAA>
Now using any of the java class, i just need read the value of "CCC" as follows:
(i.e using xpath i need to read the value)
String val = x.somemethod("/AAA/BBB/CCC");
Thanks!