Help dealing with nodes
Hi!
I'm trying to parse an XML document in order to store the various elements into Oracle DB tables.
In the document, I have a node like...
<ElementList>
<Element elem_code="AA">
<Name>A Name</Name>
... etc
In Java, I write something like...
NodeList listOfElements = doc.getElementsByTagName("Element");
int totalElements = listOfElements.getLength();
...and totalElements correctly contains the number of "Element" tags that are in the document. I'm trying to get the "elem_code" (in this case "AA"), but I don't know how. Please help this newbie.
BTW, I'm following this example: http://www.developerfusion.co.uk/show/2064/
Thx!!!

