Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Read xml using xpath in java

843834Jul 24 2004 — edited Jul 24 2004
Hi 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!
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Aug 21 2004
Added on Jul 24 2004
4 comments
154 views