I'm not sure if this is the answer to the question correctly, but based on your scenario, the following code retrieves both values ββ(given the xml variable below is an XML object containing the piece of XML code that you specified)
// Your "rdf" namespace namespace rdf = "http://www.w3.org/1999/02/22-rdf-syntax-ns#"; use namespace rdf; // Your "reg" (ie, default) namespace namespace reg = "http://purl.org/rss/1.0/"; use namespace reg; private function getYourValues():void { var rdfitems:String = xml.rdf:: item.@value ; var regitems:String = xml.reg:: item.@value ; }
A distinction must be made between the "rdf" and the "non-rdf" elements, since their element names are otherwise identical, so a second namespace is declared, allowing you to select each element independently. Hope this helps!
source share