Hi,
I have xml similar to this
var testXML:XML = <myxml>
<names>
<name/>
<name/>
</names>
<grades>
<grade>
<category>
<field no="abc"/>
</category>
</grade>
<grades>
</myxml>
I have to construct a dynamic xml based on the values I get from
database and add it to the category node.
the xml is
var test:XML = <add> <role>abc</role> <role>cde</role> <role>fce</
role> </add>
when I try adding this to the testXML,
testXML.grades.grade.category.appendChild(test);
I get
The appendChild method only works on lists containing one item.
I tried replace method also.
Is there a way to add xml containing multiple nodes.
--
You received this message because you are subscribed to the Google Groups "Flex
India Community" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to
[email protected].
For more options, visit this group at
http://groups.google.com/group/flex_india?hl=en.