Lets say i have the following xml file which i load in Flash:
<example>
<items title="something>
<img id="image"/>
<audio id="audio" />
<text id="text"/>
</items>
</example>
And i would like to add the following line:
<video id="video">
after the node so that input xml looks like this:
<example>
<items title="something>
<img id="image"/>
<audio id="audio"/>
<video id="video"/>
<text id="text"/>
</items>
</example>
I’ve done the loading part but can’t figure it out how to add new node at specific position. Can someone please show me how to do that ?
thanks a lot