0

I've XML data in an other SWF file. I get the data through this:

var getXML = event.target.applicationDomain.getDefinition("class");
var getXML = new getXML;
trace(getXML);

If I output the data, it's just the XML content like:

<?xml version="1.0" encoding="ISO-8859-1" ?>
<assets>
   <asset name="blabla" />
    ....
</assets>

How can I "transform" this text into pure XML, so I could work with data.asset[0].@name?

Thanks

1 Answer 1

3

Instantiate a XML object from the string output:

var xml:XML = new XML(getXML.toString());
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.