I have an XML document with two element types. One element type that only has attributes and other that only contains the first.
<TagList name="Results">
<Tag name="type_of_identifier" value="idvalue"/>
<Tag name="some_other_identifier" value="otheridvalue"/>
....
<Tag name="type" value="asdfaf"/>
<TagList name="SubList">
<Tag name="param1" value="value1"/>
<Tag name="param2" value="value2"/>
</TagList>
</TagList>
I'm new to XML (also Java) and I'm just at a loss as to why this was set up this way.
Is there a way I can get the value of a node by specifying the name, without having to loop through every node?