[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 215
  • Last Modified:

Turning a string into XML in Actionscript

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?

Thanks!
0
ModifyMe
Asked:
ModifyMe
1 Solution
 
ChristoferDutzCommented:
Well I think all you should need was this:

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

Open in new window

0
 
ModifyMeAuthor Commented:
Thanks, I saw my syntax error from your response...thanks!
0

Featured Post

Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Tackle projects and never again get stuck behind a technical roadblock.
Join Now