This content has been marked as final. Show 3 replies
Just a guess, but something's going on with your escape function. Step through it in Debug mode and see what's happening.
Hi rtalton and thanks for the thoughts. That made me thinking about how the XML class constructor and the appendChild methods should be called and found the issue.
It seems that calling the "appendChild" method under AIR produces a different result than when not under AIR, which is curious in itself.
However, I changed my code to be "proper" according to the documentation and it worked under both AIR and non-AIR. Here's what I changed:
The appendChild method is now called as follows:
The quotes were removed and I'm no longer treating the XML as a string.
As well, while I was at it, I changed the call to the constructor as follows:
list = new XML(<list></list>);
Same thing here, no longer treating the XML as a string.
Great, glad you caught it. I hadn't noticed the quotes, but you're right on about them.