So I have this in an file which has been turned into a xml file. This file has an array in it, with a specific set up, like this:
<level morestuff>
<Ground tileset = "Tiles" exportMode = "CSV">
//info
</Ground>
</level>
How would i got about getting
a) tileset
b) the info within the Ground tag
This is one of the first times I have used an XML file, so please excuse if this is a super simple question.
Thanks,
So, i figured it out, although it may not be the simplest or best method.
I imported the flash.xml.*
and used the elements()
function.
I used
xmlFileName.elements("Ground");
This got everything inside the <Ground>
for me.