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

Reply via email to