How to parse nested elements using DOM

I'm working on an application where I want to parse an XML file containing a number of nested elements using DOM. The following snippet is the type of XML file I'm dealing with. <?xml version=...