Var ns:Namespace = new Namespace(“http://purl.org/rss/1.0/”);

trace(rss.ns::item.toXMLString()) ;

 

I think will get you going.  You need to get AS to be using the same namespace as the tag, in your example the default namespace is the purl one.

 

Good luck!

 

Matt

 


From: [email protected] [mailto:[EMAIL PROTECTED] On Behalf Of David Vexler
Sent: Monday, November 21, 2005 2:49 PM
To: [email protected]
Subject: [flexcoders] [AS3/E4X/Flex2] Parsing rss1

 

Hello List
I've stack with a question of parsing the RSS 1 feed. I cannot access
"<item>" node via dot syntax, for example

//this is short version of feed
var rss:XML =
            <rdf:RDF
            xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
            xmlns:dc="http://purl.org/dc/elements/1.1/"
            xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
            xmlns:admin="http://webns.net/mvcb/"
            xmlns:cc="http://web.resource.org/cc/"
            xmlns="http://purl.org/rss/1.0/">
                <item>
                    <title>hello</title>
                    <description>world</description>
                </item>
            </rdf:RDF>

//i tried to do it with dot syntax
trace(rss.item.toXMLString())
//and also with namespaces
var ns:Namespace = rss.namespace("rdf");   
trace(rss.ns::RDF.item.toXMLString())

but this does not seems to work, can smbd point where am i wrong?
Thanks in advance

best regards David Vexler






--
Flexcoders Mailing List
FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
Search Archives: http://www.mail-archive.com/flexcoders%40yahoogroups.com




YAHOO! GROUPS LINKS




Reply via email to