[flexcoders] E4x. Strange behavior when modifying XML. Help needed.

2009-05-07 Thread lytvynyuk
I have XML instance like that: var xml:XML = test test I want to edit text in summary and title elements. I do: xml.summary = "This is my summary"; xml.title = "This is new title"; but in resulting XML is see something like that: test test This is my summary This is new

Re: [flexcoders] E4x. Strange behavior when modifying XML. Help needed.

2009-05-07 Thread Daniel Freiman
xml.summary.text()[0] = "This is my summary" Almost all e4x calls return an XMLList, including text() which returns and XMLList where all the node types are "text." So the above is getting the text values/nodes and setting the first one. - Daniel Freiman On Thu, May 7, 2009 at 1:35 PM, lytvynyu