Re: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Henrik Andersson
Start by throwing away the XMLList wrapper, what you really have is a single XML element, stop trying to pretend otherwise. Once you have the XML instance, just call the namespace method with the prefix to get the correct Namespace instance to use. Or even simpler, create the Namespace

RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
Once you have the XML instance, just call the namespace method with the prefix to get the correct Namespace instance to use. Or even simpler, create the Namespace object directly from the used url. If you followed the thread, that's what I was doing and it wasn't working. Jason Merrill

RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
Here is my final utility function to disable XML namespaces if anyone finds this useful: /** * This method will disable, but not remove namespace declarations in an XML document. Namespace declarations * are altered from using a color designator (:) to a

Re: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Ross Sclafani
typo On Apr 29, 2011, at 2:54 PM, Merrill, Jason wrote: color designator (:) ___ Flashcoders mailing list Flashcoders@chattyfig.figleaf.com http://chattyfig.figleaf.com/mailman/listinfo/flashcoders

RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Ross Sclafani Sent: Friday, April 29, 2011 3:18 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness typo On Apr 29, 2011, at 2:54 PM, Merrill, Jason wrote: color designator

Re: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Peter Ginneberge
()); } === regards, Muzak - Original Message - From: Merrill, Jason jason.merr...@bankofamerica.com To: Flash Coders List flashcoders@chattyfig.figleaf.com Sent: Friday, April 29, 2011 4:32 AM Subject: [Flashcoders] XMLList Namespace Madness I'm going crazy trying

RE: [Flashcoders] XMLList Namespace Madness

2011-04-29 Thread Merrill, Jason
Sent: Friday, April 29, 2011 4:14 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness The following works for me: === var myXMLList:XMLList = XMLList(GetUserProfileByNameResponse xmlns=http://microsoft.com/webservices

[Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
I'm going crazy trying to drill down into a XMLList which has namespaces declared. I have been able to go into a few layers of the original XML with namespaces using namespace definitions in AS3, but now I am stuck at the last level. The XMLList I have pared it down to has a length of 1 and

Re: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Karl DeSaulniers
Hi Jason, As you know I am not the Pro AS3 developer, but I have some google fu. (I'd like to think so anyways) Could this be what your looking for? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ XMLList.html#hasComplexContent() Best, Karl On Apr 28, 2011, at 9:32

Re: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Karl DeSaulniers
Or even this?? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ XML.html#text() I believe this one strips out namespaces. Best, Karl On Apr 28, 2011, at 9:32 PM, Merrill, Jason wrote: I'm going crazy trying to drill down into a XMLList which has namespaces declared. I

RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, April 28, 2011 11:26 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness Hi Jason, As you know I am not the Pro AS3 developer, but I have some google fu. (I'd like to think so anyways) Could this be what your

RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
, April 28, 2011 11:28 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness Or even this?? http://help.adobe.com/en_US/FlashPlatform/reference/actionscript/3/ XML.html#text() I believe this one strips out namespaces. Best, Karl On Apr 28, 2011, at 9:32 PM, Merrill, Jason

Re: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Karl DeSaulniers
___ -Original Message- From: flashcoders-boun...@chattyfig.figleaf.com [mailto:flashcoders- boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Thursday, April 28, 2011 11:28 PM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness

RE: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Merrill, Jason
[mailto:flashcoders-boun...@chattyfig.figleaf.com] On Behalf Of Karl DeSaulniers Sent: Friday, April 29, 2011 12:23 AM To: Flash Coders List Subject: Re: [Flashcoders] XMLList Namespace Madness Mmmm.. I've been getting into AS3 and XML a little more, so good to know. So is your problem solved? I don't want

Re: [Flashcoders] XMLList Namespace Madness

2011-04-28 Thread Karl DeSaulniers
List Subject: Re: [Flashcoders] XMLList Namespace Madness Mmmm.. I've been getting into AS3 and XML a little more, so good to know. So is your problem solved? I don't want to beat a dead horse. :) If no, I have run across somewhat a similar case of a return from an XML not parsing