I have an XML config file that has just one parent and one child. This will always be like this and never change. It looks something like this:\[code\]<parent> <child1>test</child1> <child2>123</child2></parent>\[/code\]I want to use java DOM (\[code\]org.w3c.dom.Document\[/code\]) to parse the XML into a TreeMap so that I can access the attributes as keys/values. I'm guessing I'd need to create a for loop that scans through the XML and adds the key (parent) and value (child) line by line?