Loading xml files

To load an XML file in Javascript with unity, I couldn't find any simple starter scripts so I thought this might be helpful as I had a hard time learning how to load XML with Javascript. In order to load XML you must import System.Xml so Unity knows that it needs to parse an Xml file. The next step is to Load the Xml file so we use the command: After that we basically loop through every root node which happens to be in this case(can be anything tho). While we're looping through our root nodes with rootXml.MoveNext we print out all tags inside the currently selected node.