Hi, I have a simple XML file just like this one:
<?xml version="1.0" encoding="utf-8" ?>
<data>
<entry>
<name>type</name>
<value>board-configuration</value>
</entry>
<entry>
<name>version</name>
<value>1</value>
</entry>
</data>
This file is loaded using URLLoader and, after that, I need to parse it to retrieve its values. I’m using Haxe Fast for this:
var loadedXML:Fast = new Fast(Xml.parse(loader.data).firstElement());
for (xmlnode in loadedXML.nodes.entry) {
trace ('checking value');
trace ('data', xmlnode.node.name.innerData, xmlnode.node.value.innerData);
}
This works as expected on Flash target, but for the HTML5 I get no results. Am I missing something?
I noticed that Fast is, indeed, working on HTML5 - if I fetch the XML values direcly I do get them. The problem seems to be at the iteration. Any clues about this?
Thank you!