Thanks for all of this!! So this should work:
var myLoader:URLLoader = new URLLoader(); myLoader.addEventListener(
Event.COMPLETE, onLoadXML ); myLoader.load( new URLRequest("
http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL"; ));
myLoader.dataFormat = "XML"; //var ns:Namespace = new Namespace("
http://www.xignite.com/services/";); function onLoadXML( e:Event ):void { var
myXML:XML = new XML(e.target.data); //trace( myXML); var ns:Namespace =
myXML.namespace(); default xml namespace = ns; trace("Outcome: ",
myXML.Outcome); trace("Delay: ", myXML.Delay); }

On Fri, Feb 13, 2009 at 5:25 PM, Muzak <[email protected]> wrote:

> There is a default namespace, namely: http://www.xignite.com/services/
>
> The following should work:
>
> var myLoader:URLLoader = new URLLoader();
> myLoader.addEventListener( Event.COMPLETE, onLoadXML );
> myLoader.load( new URLRequest("
> http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL"; ));
> myLoader.dataFormat = "XML";
>
> var ns:Namespace = new Namespace("http://www.xignite.com/services/";);
>
> function onLoadXML( e:Event ):void {
> var myXML:XML = new XML(e.target.data);
> //trace( myXML);
> default xml namespace = ns;
> trace("Outcome: ", myXML.Outcome);
> trace("Delay: ", myXML.Delay);
> }
>
> regards,
> Muzak
>
> ----- Original Message ----- From: "Eric E. Dolecki" <[email protected]>
> To: "Flash Coders List" <[email protected]>
> Sent: Friday, February 13, 2009 10:08 PM
> Subject: [Flashcoders] Strange XML parsing thing
>
>
>  Maybe it's Friday and I'm tired, but this just seems so weird. Something I
>> have done 8 billions times before and now things are acting up. Code
>> couldn't be much more simple.
>> var myLoader:URLLoader = new URLLoader();
>> myLoader.addEventListener( Event.COMPLETE, onLoadXML );
>> myLoader.load( new URLRequest( "
>> http://www.xignite.com/xquotes.asmx/GetQuote?Symbol=AAPL"; ));
>>
>> function onLoadXML( e:Event ):void
>> {
>> var myXML:XML = new XML( e.target.data );
>> trace( myXML);
>> }
>>  Anyway, When I try to trace out myXML.ExtendedQuote, I get nothing.
>> When I trace out myXML.Name, I get nothing. I don't see namespaced
>> nodes anywhere, so what exactly is going on? I just want to get at
>> some of that data sitting in simple nodes. So freaking weird.
>>
>> Thanks for any insight,
>> Eric
>>
>
> _______________________________________________
> Flashcoders mailing list
> [email protected]
> http://chattyfig.figleaf.com/mailman/listinfo/flashcoders
>



-- 
http://ericd.net
Interactive design and development
_______________________________________________
Flashcoders mailing list
[email protected]
http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

Reply via email to