Turning a string into XML in Actionscript

Posted on 2011-05-09
Last Modified: 2012-05-11
Hey all,

I have a string passed to my app that I need to turn into XML once my app gets the string.  I've tried using:
var strName:XML;

Open in new window

But it does not seem to work...any suggestions?

Question by:ModifyMe
    LVL 20

    Accepted Solution

    Well I think all you should need was this:

    var string:String = "<cool/>";
    var xml:XML = new XML(string);

    Open in new window


    Author Closing Comment

    Thanks, I saw my syntax error from your response...thanks!

    Write Comment

    Please enter a first name

    Please enter a last name

    We will never share this with anyone.

    Featured Post

    What Should I Do With This Threat Intelligence?

    Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

    Suggested Solutions

    The Problem How to write an Xquery that works like a SQL outer join, providing placeholders for absent data on the outer side?  I give a bit more background at the end. The situation expressed as relational data Let’s work through this.  I’ve …
    The Confluence of Individual Knowledge and the Collective Intelligence At this writing (summer 2013) the term API ( has made its way into the popular lexicon of the English language.  A few years ago, …
    The goal of the tutorial is to teach the user how to use the auto adjust feature and what the different options do. When your video is not working right you can choose the auto adjust feature to help choose your settings.
    This Micro Tutorial will teach to how to utilize bit rate in Adobe Flash Media Live Encoder.

    737 members asked questions and received personalized solutions in the past 7 days.

    Join the community of 500,000 technology professionals and ask your questions.

    Join & Ask a Question

    Need Help in Real-Time?

    Connect with top rated Experts

    22 Experts available now in Live!

    Get 1:1 Help Now