Not sure what I was doing wrong here but I've got this worked out and
documented here:
http://www.returnundefined.com/dealing-with-default-namespaces-in-flex-2as3
Hopefully someone will find it useful.
Ben
--- In flexcoders@yahoogroups.com, "ben.clinkinbeard"
<[EMAIL PROTECTED]> wrote:
>
> That
> [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
> > Sent: Wednesday, July 12, 2006 9:47 AM
> > To: flexcoders@yahoogroups.com
> > Subject: [flexcoders] Re: Addressing buried children in XML
> > with default namespace- an easier way?
> >
> > Bumping this u
That doesn't seem to work for me. I have this file:
package com.fmr.tests.PSA_Cairngorm.model
{
public namespace CLIENT_SEARCH_NAMESPACE =
"http://site.com/BackOffice/DoSearch";;
}
and then in my command class, along with all my other import
statements I have:
import com.fmr.tests.PSA_Cai
uot;.
-Brian
> -Original Message-
> From: flexcoders@yahoogroups.com
> [mailto:[EMAIL PROTECTED] On Behalf Of ben.clinkinbeard
> Sent: Wednesday, July 12, 2006 9:47 AM
> To: flexcoders@yahoogroups.com
> Subject: [flexcoders] Re: Addressing buried children in XML
> with def
Bumping this up in the hopes that someone (possibly from Adobe?) can
offer an alternative, or at least an explanation of why this is the
case. As it stands now, I will have to have these lines:
namespace foo = "http://site.com/BackOffice/DoSearch";;
use namespace foo;
sprinkled throughout my app,
It seems that the only way to use the full functionality of E4X with
namespaced XML is by using this method:
namespace foo = "http://site.com/BackOffice/DoSearch";;
use namespace foo;
Unfortunately, that method must be constructed exactly like that- with
a static string. You cannot even point it
Sorry, I guess I wasn't clear in what I was looking for- I am trying
to figure out how to address deeply buried nodes without having to go
one level at a time. Something like the .. operator, but that is
compatible with namespaced XML (.. doesn't seem to be). The Web
Services I am calling return da
Here's a couple:
// namespace constant
public namespace default_ns = "http://fmr.com/BackOffice/PseSearch";;
// init test
public function init () : void {
var xml : XML =
http://fmr.com/BackOffice/PseSearch";>
fa
8 matches
Mail list logo