The double colon is the namespace accessor.  But I do not really understand
that example.  Unless you can use a wildcard as a namespace?

 

I have managed to mostly avoid dealing with namespaces so far.

 

Tracy Spratt,

Lariat Services, development services available

  _____  

From: flexcoders@yahoogroups.com [mailto:flexcod...@yahoogroups.com] On
Behalf Of luvfotography
Sent: Monday, March 15, 2010 8:06 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] xml parsing

 

  

What does '*::' do in the following example:
(can someone explain how this works, where aspectRatios ends up with
'widescreen')

var aspectRatios:XMLList = atomXml..*::aspectRatio;

where atomxml = 
<?xml version="1.0" encoding="utf-16"?>
<entry gd:etag="W/&quot;C0QCQ347eCp7ImA9WxBbFkk.&quot;"
xmlns="http://www.w3. <http://www.w3.org/2005/Atom> org/2005/Atom"
xmlns:media="http://search. <http://search.yahoo.com/mrss/> yahoo.com/mrss/"
xmlns:gd="http://schemas. <http://schemas.google.com/g/2005>
google.com/g/2005" xmlns:yt="http://gdata.
<http://gdata.youtube.com/schemas/2007> youtube.com/schemas/2007">
<id>tag:youtube.com,2008:video:yNq5vC_EHAg</id>
<published>2009-03-17T07:44:54.000Z</published>

<yt:accessControl action="syndicate" permission="allowed" />
<gd:comments>
<gd:feedLink href="http://gdata.
<http://gdata.youtube.com/feeds/api/videos/yNq5vC_EHAg/comments?v=2>
youtube.com/feeds/api/videos/yNq5vC_EHAg/comments?v=2" countHint="1031" />
</gd:comments>
<media:group>
<yt:aspectRatio>widescreen</yt:aspectRatio>
<yt:duration seconds="232" />
<yt:uploaded>2009-03-17T07:44:54.000Z</yt:uploaded>
<yt:videoid>yNq5vC_EHAg</yt:videoid>
</media:group>
<gd:rating average="4.794872" max="5" min="1" numRaters="3159"
rel="http://schemas. <http://schemas.google.com/g/2005#overall>
google.com/g/2005#overall" />
<yt:statistics favoriteCount="9429" viewCount="4563767" />
</entry> 



Reply via email to