DJ_AM_Juicebox
asked on
Getting XML element's name
Hi,
Getting a node like this:
// Get child node.
Node childNode = list.item(i);
How do you get the name of the element? For example:
<furniture>chair</furnitur e>
I want to get the element name 'furniture'.
Thanks
Getting a node like this:
// Get child node.
Node childNode = list.item(i);
How do you get the name of the element? For example:
<furniture>chair</furnitur
I want to get the element name 'furniture'.
Thanks
String name = childNode.getNodeName();
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.