[Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Eric E. Dolecki
For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST/ How can I get into that node to pull attributes out? The : in the node name is screwing my up at the moment. Eric ___

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Eric E. Dolecki
Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto: flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Monday, February 09, 2009 10:37 AM To: Flash Coders List Subject: [Flashcoders] Getting attributes out of a node with : in it For example I have

RE: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Robert Leisle
...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Monday, February 09, 2009 10:37 AM To: Flash Coders List Subject: [Flashcoders] Getting attributes out of a node with : in it For example I have a node like so: yweather:condition text=Partly Cloudy code=30 temp=34 date=Mon, 09 Feb 2009 12:56 pm EST

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Taka Kojima
I take it this is from an rss feed? Look into the Namespace class... http://livedocs.adobe.com/flash/9.0/ActionScriptLangRefV3/Namespace.html Unfortunately, you didn't paste the entire XML doc so I can't guide you further. - Taka On Mon, Feb 9, 2009 at 10:36 AM, Eric E. Dolecki

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Christoffer Enedahl
=65 hth, Bob -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Eric E. Dolecki Sent: Monday, February 09, 2009 10:37 AM To: Flash Coders List Subject: [Flashcoders] Getting attributes out of a node

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Taka Kojima
I just realized that the link I sent doesn't mention the namespace operator, which is the main thing you need... The following example uses the :: operator to identify XML properties with specified namespaces: var soap:Namespace = new Namespace(http://schemas.xmlsoap.org/wsdl/soap/;); var

RE: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Merrill, Jason
Leisle Sent: Monday, February 09, 2009 3:17 PM To: 'Flash Coders List' Subject: RE: [Flashcoders] Getting attributes out of a node with : in it Check out the Namespace class, as it applies to XML, in the Flash docs. There's also a good explanation in this tutorial by Lee Brimelow: http

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Eric E. Dolecki
Ok, so in my XML loaded function I have this: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var yweather:Namespace = new Namespace( http://weather.yahooapis.com/ns/rss/1.0; ); trace( myXML.channel.item.yweather::conditi...@temp ); } I get nothing. I'm

RE: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Merrill, Jason
Of Eric E. Dolecki Sent: Monday, February 09, 2009 4:10 PM To: Flash Coders List Subject: Re: [Flashcoders] Getting attributes out of a node with : in it Ok, so in my XML loaded function I have this: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var

Re: [Flashcoders] Getting attributes out of a node with : in it

2009-02-09 Thread Eric E. Dolecki
Of Eric E. Dolecki Sent: Monday, February 09, 2009 4:10 PM To: Flash Coders List Subject: Re: [Flashcoders] Getting attributes out of a node with : in it Ok, so in my XML loaded function I have this: private function loadedXML( e:Event ):void { var myXML:XML = new XML( e.target.data ); var