# Convert XML to Simple Object?

**URL:** <https://forum.kirupa.com/t/convert-xml-to-simple-object/290799>\
**Category:** flash\
**Created:** [June 19, 2009, 7:02pm UTC](https://forum.kirupa.com/t/convert-xml-to-simple-object/290799 "2009-06-19T19:02:24Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![Chromag](https://avatars.discourse-cdn.com/v4/letter/c/71e660/32.png) [@Chromag](https://forum.kirupa.com/u/Chromag)\
**Post date:** [June 19, 2009, 7:02pm UTC](https://forum.kirupa.com/t/convert-xml-to-simple-object/290799/1 "2009-06-19T19:02:24Z")

</div>

I’m new to AS3 (but not other programming languages) so pardon my ignorance. Is there a way to convert the XML object into a simple object? I’m parsing a string into XML and I realize that in itself is an object, but I want an object that doesn’t include the functions/properties related to XML itself (appendChild, attribute, etc).

The problem is that I want to pass the XML data (in object form) to Javascript via the ExternalInterface, but I can’t seem to pass anything more complicated than a simple object.

Any help is appreciated, thanks.
