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
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
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
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
[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
());
}
===
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
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
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
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
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
...@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
, 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
___
-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
[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
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
15 matches
Mail list logo