# XML Conundrum

**URL:** <https://forum.kirupa.com/t/xml-conundrum/250500>\
**Category:** flash\
**Created:** [January 30, 2008, 1:22am UTC](https://forum.kirupa.com/t/xml-conundrum/250500 "2008-01-30T01:22:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Mr\_Entropy](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mr\_Entropy](https://forum.kirupa.com/u/Mr_Entropy)\
**Post date:** [January 30, 2008, 1:22am UTC](https://forum.kirupa.com/t/xml-conundrum/250500/1 "2008-01-30T01:22:05Z")

</div>

Hi all,

I’m still a novice at ActionScript 3 and I was hoping to enlist your collective wisdom: I am trying to load an XML file into Flash CS3. I know there is already an [excellent tutorial](http://www.kirupa.com/developer/flashcs3/using_xml_as3_pg1.htm)on this site (which I’ve read), but my problem is that the XML file I’m using is a bit unusual in that the data I wish to access is located in a tag that uses a colon (confusing for ActionScript?) and are part of the namespace.

Here is an example. The data I’d like to load into Flash are the ows\_ows\_CategoryNames and ows\_Percentage fields.

\<xml xmlns:s=“uuid:BDC6E3F0-6DA3-11d1-A2A3-00AA00C14882” xmlns:dt=“uuid:C2F41010-65B3-11d1-A29F-00AA00C14882” xmlns:rs=“urn:schemas-microsoft-com:rowset” xmlns:z="#RowsetSchema"\>  
\<s:Schema id=“RowsetSchema”\>  
\<s:ElementType name=“row” content=“eltOnly” rs:CommandTimeout=“30”\>  
\<s:AttributeType name=“ows\_CategoryNames” rs:name=“Description” rs:number=“1”\>  
\<s:datatype dt:type=“string” dt:maxLength=“512” /\>  
\</s:AttributeType\>  
\<s:AttributeType name=“ows\_Percentage” rs:name=“Percentage” rs:number=“2”\>  
\<s:datatype dt:type=“float” dt:maxLength=“8” /\>  
\</s:AttributeType\>  
\</s:ElementType\>  
\</s:Schema\>  
\<rs:data\>  
[COLOR=red]\<z:row ows\_CategoryNames=“10/15/07” ows\_Percentage=“0.550000000000000” /\>  
\<z:row ows\_CategoryNames=“11/22/07” ows\_Percentage=“0.750000000000000” /\>  
[/COLOR] \</rs:data\>  
\</xml\>

Thank you for the help!

---

<div class="post-metadata">

**Author:** ![Mr\_Entropy](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mr\_Entropy](https://forum.kirupa.com/u/Mr_Entropy)\
**Post date:** [May 12, 2008, 6:14pm UTC](https://forum.kirupa.com/t/xml-conundrum/250500/2 "2008-05-12T18:14:55Z")

</div>

Hi all,  
This problem is still haunting me. Can anyone suggest a way to parse XML with unusual characters in AS3?  
Thanks,

---

<div class="post-metadata">

**Author:** ![Mr\_Entropy](https://avatars.discourse-cdn.com/v4/letter/m/e480ec/32.png) [@Mr\_Entropy](https://forum.kirupa.com/u/Mr_Entropy)\
**Post date:** [May 12, 2008, 7:51pm UTC](https://forum.kirupa.com/t/xml-conundrum/250500/3 "2008-05-12T19:51:54Z")

</div>

Well, I have figured out an awkward work around: I read in the XML, find and replace the malformed nodes, and then create a new XML string. I can’t help feeling there must be a better way, but I thought I’d post this in case it helps anyone else.
