You can access the information using either the wildcard namespace
operator:
var title: String = xmlResponse.*::channel.*::title;
or by the namespace (you may need to test the different namespaces to
find the right one, my experience has been to use the one without a
prefix) :
var ns:Namespace = new Namespace("http://www.mydomain.com/myown/");
default xml namespace = ns;
var title: String = xmlResponse.channel.title;
Derrick Grigg
-------------
www.dgrigg.com
--- In [email protected], "Diego Guebel"
<[EMAIL PROTECTED]> wrote:
>
> Hi all,
> I'm trying to read some nodes with e4x and was dealing with the
syntax for
> the namespaces for a while without luck. I could read the node when
it has
> only one namespace, but dont know how is the syntax when I have more....
>
> I have an xml like this:
>
> <MyXMLResponse
> xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/"
> xmlns="http://www.mydomain.com/myown/"
> xmlns:xsd="http://www.w3.org/2001/XMLSchema"
> xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
>
> <channel>
> <title>iTunes 10 New Releases</title>
> <link>http://phobos.apple.com/WebObjects/MZStore.woa/wa/
viewNewReleases?pageType=newReleases&id=1</link>
> <description>iTunes Store: Today's 10 Newest
> Releases</description>
> <language>en</language>
> <copyright>Copyright 2006 Apple Computer, Inc.</copyright>
> </MyXMLResponse>
>
> Any clue?
> Thanks, Diego.
>
--
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
<*> To visit your group on the web, go to:
http://groups.yahoo.com/group/flexcoders/
<*> Your email settings:
Individual Email | Traditional
<*> To change settings online go to:
http://groups.yahoo.com/group/flexcoders/join
(Yahoo! ID required)
<*> To change settings via email:
mailto:[EMAIL PROTECTED]
mailto:[EMAIL PROTECTED]
<*> To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
<*> Your use of Yahoo! Groups is subject to:
http://docs.yahoo.com/info/terms/