Re: [flexcoders] How to create XML Object from string (AS3: E4X)

2005-11-30 Thread Michael Hansen
try var myxml:XML = {xmlstring}; Cheers -michael On 12/1/05, Ralf Rottmann [EMAIL PROTECTED] wrote: Quick question: I have valid XML in a :String variable. How can I create an XML Object from it? This did NOT work: 1. var tempXml:XML; tempXml = XML(s); 2. var

Re: [flexcoders] How to create XML Object from string (AS3: E4X)

2005-11-30 Thread Michael Hansen
Sorry.. that doesn't work, but doing a XML construct from the string ought to work?? http://livedocs.macromedia.com/labs/1/flex/wwhelp/wwhimpl/common/html/wwhelp.htm?context=LiveDocs_Partsfile=2041.html cheers -michaelOn 12/1/05, Michael Hansen [EMAIL PROTECTED] wrote: try var

RE: [flexcoders] How to create XML Object from string (AS3: E4X)

2005-11-30 Thread Geoffrey Williams
var _str:String = rootchildtext/child/root; var _xml:XML = XML (_str); flash.util.trace (String (_xml.child)); From: flexcoders@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of Ralf Rottmann Sent: Wednesday, November 30, 2005 6:22 PM To:

RE: [flexcoders] How to create XML Object from string (AS3: E4X)

2005-11-30 Thread Ralf Rottmann
] --- From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On Behalf Of Michael Hansen Sent: Donnerstag, 1. Dezember 2005 01:25 To: flexcoders@yahoogroups.com Subject: Re: [flexcoders] How to create XML Object from string (AS3: E4X) try var myxml:XML = {xmlstring}; Cheers -michael