http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex-2as3/
Ben
http://www.returnundefined.com/
--- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote:
Hi everyone,
I am having some difficulty parsing .Net web service results. The
problem
lies in
:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 12:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-fl
ex-2as3/
Ben
http
@yahoogroups.com [mailto:flexcoders@yahoogroups.com] On Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006
9:46 AM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML
parser chokes on un-typed xmlns
http://www.returnundefined.com/2006/07/dealing-with-default-namespaces-in-flex
-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 12:46 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
http://www.returnundefined.com/2006/07/dealing-with-default
PM
To: flexcoders@yahoogroups.com
Subject: RE: [flexcoders] Re: XML
parser chokes on un-typed xmlns
More explanation...
Tom, the behavior you saw was correct.
In your first case, defining the soap
namespace prefix on a doesn't affect b, because b has
no namespace prefix and is therefore
PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
Hi Tom,
Sorry, I've not used the descendants method before and I just assumed
the approach I use would work. If you use .. instead it will work as
expected.
namespace temp = http://tempuri.org/;;
use
Message-
From: flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] On
Behalf Of ben.clinkinbeard
Sent: Wednesday, August 16, 2006 2:31 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
Hi Tom,
Sorry, I've not used the descendants method before
, August 16, 2006 3:18 PM
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
Don't get me started on default namespaces in Flex/AS3... :)
--- In flexcoders@yahoogroups.com, Tom Lee [EMAIL PROTECTED] wrote:
Awesome! That's got it! Thanks so much. Seems odd
Another idea I had would be to automagically loop through all the nodes in
the XML, find all the namespaces, and declare them... But frankly, I don't
know enough about the topic to understand the downsides of doing something
like that. What do you think of the idea?
Class XML:
AS3 function
To: flexcoders@yahoogroups.com
Subject: [flexcoders] Re: XML parser chokes on un-typed xmlns
I went round and round with different ideas about how to deal with
these issues shortly after I started working with Flex. I even had
some issues using namespaceDeclarations() which, as Claus points out,
should
10 matches
Mail list logo