SWF XML problem


#1

In a SWF there’s the following Meta Data:

<rdf:RDF xmlns:rdf=’http://www.w3.org/1999/02/22-rdf-syntax-ns#’>
<rdf:Description rdf:about=’’ xmlns:dc=’http://purl.org/dc/1.1’>
dc:titleSimple Title</dc:title>
dc:descriptionMY_METADATA:hello=test</dc:description>
</rdf:Description>
</rdf:RDF>

When I put all this into a String and create a XmlDocument from that String, I get a valid XmlElement pointer by using
myXmlDocument.getDocumentElement();

After having obtained the pointer, xmlElement->getTagName() returns “rdf:RDF” which is correct.

I should now also be able to get the name of the first attribute by calling xmlElement->getAttributeName(0), but this fails. I also tried without the # after ns.

Why does it fail?


#2

I guess it’ll either be the colon in the attribute name or the dodgy-looking quote character you’ve used, that doesn’t look to me like it’s actually a normal quote?


#3

Indeed, it were the quote characters. I copied the above XML from the official Flash Specs PDF, and thought “If it’s from the official specs, it must me ok”. That was wrong. :roll:


#4