Hello. I'm starting out using XML within my java program. I've managed to retrieve all of my elements etc, but I dunno how I retrieve my groupNumber (in this case its 3). The structure of my XML file is below, I've omitted the employee data for brevity.
Author and all-around good cowpoke
posted 4 years ago
When you have a "Group" Element, use the methods in org.w3c.dom.Element to manipulate attributes.
While you have the JavaDocs for the org.w3c.dom package open, study the Node Javadocs - there is a table which every XML programmer needs to be familiar with.