# AS3 + Issue with XML Parsing

**URL:** <https://forum.kirupa.com/t/as3-issue-with-xml-parsing/332039>\
**Category:** flash\
**Created:** [January 7, 2014, 1:07am UTC](https://forum.kirupa.com/t/as3-issue-with-xml-parsing/332039 "2014-01-07T01:07:01Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![selacius](https://avatars.discourse-cdn.com/v4/letter/s/898d66/32.png) [@selacius](https://forum.kirupa.com/u/selacius)\
**Post date:** [January 7, 2014, 1:07am UTC](https://forum.kirupa.com/t/as3-issue-with-xml-parsing/332039/1 "2014-01-07T01:07:01Z")

</div>

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:

```auto

 <object name="NPC" type="elf-child" x="704" y="544" width="16" height="16">
   <properties>
    <property name="NPCActions" value="&lt;NPCACTIONS&gt;&lt;text face=&quot;TRUE&quot; ID=&quot;0&quot; loc=&quot;LEFT&quot;&gt;Good day sir. Loving morning out there.&lt;/text&gt;&lt;/NPCACTIONS&gt;"/>
   </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:

```auto

<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
