I have created a small function called 'xml2array()' that will take an XML document as the argument, parse it and return an associative array as the result. This array will contain the data of the XML file - which can be easily accessed - without resorting to writing codes with
node.nextSibiling or any other stuff like that. Take a look at the Demo page.
getElementsByTagName() can be used to make parsing XML documents much easier.