Hi there construct community,
I do have the next XML file; I have used Ajax to load the XML file; then load XML info using AJAX.LastData.
I want to get the info of the XML items "Level" by number order, but the items don't have a tag to pick them up by number, instead they have string names, how can I achieve that?
I tried this to pick the first level (Item[1]) but with no success "XML.StringValue("/FreePack/LevelCollection/Level[1]/text()")"
Any help would be appreciated!!
<?xml version="1.0" encoding="ISO-8859-1"?>
<FreePack>
<LevelCollection MaxWidth="11" MaxHeight="12">
<Level Id="Con" Width="9" Height="2">
<L> # #</L>
<L> #####</L>
</Level>
<Level Id="Roo" Width="11" Height="2">
<L># #</L>
<L>###########</L>
</Level>
<Level Id="Jor" Width="9" Height="2">
<L> ## #</L>
<L> ####</L>
</Level>
</LevelCollection>
</FreePack>