XML & Web services: How to get the attribute value of an XML file??
How to get the attribute value of an XML file??
- Posted by: Matt Louden
- Posted on: May 31 2004 15:01 EDT
For example, how to get name and age attributes?
<student name="Joe" age="20" />
Use JAXP and DOM:
Using Xpath to can get the elemenet and then get the attributes
I guess using '@' followed by attribute name.