I am using a mapeditor to create the maps for my RPG. It stores the map values as XML. For some NPCs I need to further add XML to it, which I have been able to. However, retrieving this embedded XML is posing to be an issue. This is how the additional XML is stored within the map:
<object name="NPC" type="elf-child" x="704" y="544" width="16" height="16">
<properties>
<property name="NPCActions" value="<NPCACTIONS><text face="TRUE" ID="0" loc="LEFT">Good day sir. Loving morning out there.</text></NPCACTIONS>"/>
</properties>
</object>
I need the XML from the value portion, and I can import that within AS3, but it doesn’t maintain the node structure that I want. The proper structure would be:
<NPCACTIONS>
<text face="TRUE" id="0" loc="LEFT">Good Day Sir. Loving morning out there</text>
<end />
</NPCACTIONS>
No matter what I try it doesn’t want to work. Any help would be great.
Thanks