Simply pass a String containing XML to the XML constructor:

 

    var myXML:XML = new XML("<Menu><icon id='1'/><icon id='2'/></Menu>");

 

Note that the values of the id attributes must be quoted.

 

XMLDocument is deprecated; it is ActionScript 2's old pre-E4X kind of XML object, and we don't recommend using it any more.

 

- Gordon

 


From: [email protected] [mailto:[email protected]] On Behalf Of Brendan Meutzner
Sent: Wednesday, July 19, 2006 12:13 PM
To: [email protected]
Subject: Re: [flexcoders] How to make XML object using String in Flex 2??

 

XMLDocument.parseXML(XMLString);


On 7/19/06, leaveist <[EMAIL PROTECTED]> wrote:

I making tree menu using remote object.

So, I was used oracle 9i xml data type.

I can get xml document to String.

ex) String result="<Menu><icon id=1/><icon id=2/></Menu>"

so, I was send Java string object to Flex application using flash
string object.

as like this)

myXML:XML = result;

but, it is not working.

I Know problem, that is, flesh XML type can not using String.

for Example:

* This is working)
myXML:XML =<Menu><icon id=1/><icon id=2/></Menu>

* But, This is not working)
myXML:XML ="<Menu><icon id=1/><icon id=2/></Menu>"

So, How to make XML object using String?

 

__._,_.___

--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com





SPONSORED LINKS
Web site design development Computer software development Software design and development
Macromedia flex Software development best practice


YAHOO! GROUPS LINKS




__,_._,___

Reply via email to