I am trying to display a list of all the tags in a XML file. But I can't seem to do it. [
This is the XML I am tying to read the tags from: http://i.stack.imgur.com/9bYHi.png
If someone knows a way to keep the tree struckture of the xml file and trasfer it into an array. That would be really helpfull.
My question is different because I don't know the contents of the xml file. My image is just an example. I am looking for a solution that reads all the tags from an xml file and also keeps the tree structure when putting it in an array.