XML Conundrum

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 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!

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

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.