I have XML instance like that:

var xml:XML = <data>
   <summary type='text'>test</summary>
   <title type='text'>test</title >
</data>

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:

<data>
   <summary type='text'>test</summary>
   <title type='text'>test</title >
   <summary>This is my summary</summary>
   <title>This is new title</title >
</data>

which is a big problem for me!

What's wrong here?

Reply via email to