Put this code before your parsing routine:

var atom:Namespace = new Namespace("http://www.w3.org/2005/Atom";);
var dc:Namespace = new Namespace("http://purl.org/dc/elements/1.1/";);
var flickr:Namespace = new Namespace("urn:flickr:");
var media:Namespace = new Namespace("http://search.yahoo.com/mrss/";);

default xml namespace = atom;

It defines the namespaces for each specified in the start of the xml
feed you're loading (<feed xmlns="http://www.w3.org/2005/Atom";
      xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:flickr="urn:flickr:" xmlns:media="http://search.yahoo.com/mrss/";>)

See how that works.

Barry.


-----Original Message-----
From: [email protected]
[mailto:[email protected]] On Behalf Of Andrew
Sinning
Sent: Sunday, 15 November 2009 11:07 a.m.
To: [email protected]; Flash Coders List
Subject: Re: [Flashcoders] Flicker feed doesn't seem to load

I'm considering using the old-school XMLDocument Class.  This is so 
frustrating.  I actually walked away from this about 6 hours ago, but I 
keep checking back on the list to see if anyone has a clue.

Latcho wrote:
> From what I remember;  Very bad documented: the API for using
namespaces.
> Resulted in errorous code / xml.
> I ended up stripping the namespace from the xml.
> Latcho
>> Andrew Sinning wrote:
>>> I'm finding to problems with the flick feed that I'm trying to load.
>>>
>>> In the root tag there are name-space attributes:
>>>
>>> xmlns:dc="http://purl.org/dc/elements/1.1/";
xmlns:flickr="urn:flickr:"
>>> xmlns:media="http://search.yahoo.com/mrss/";
>>>
>>
>> Flash has support for those, but I don't remember how you do it.
>> _______________________________________________
>> Flashcoders mailing list
>> [email protected]
>> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to