[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-14 Thread ben.clinkinbeard
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

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-12 Thread ben.clinkinbeard
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,

RE: [flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-12 Thread Brian Deitte
You can reference a namespace object if you put this in a file: package mypackage { public namespace DoSearch = http://site.com/BackOffice/DoSearch;; } import mypackage.DoSearch in each class where you want to use it, and then use namespace DoSearch. -Brian -Original Message-

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-12 Thread ben.clinkinbeard
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

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-12 Thread ben.clinkinbeard
Has anyone else gotten this to work? Ben --- In flexcoders@yahoogroups.com, Brian Deitte [EMAIL PROTECTED] wrote: You can reference a namespace object if you put this in a file: package mypackage { public namespace DoSearch = http://site.com/BackOffice/DoSearch;; } import

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-11 Thread ben.clinkinbeard
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

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-10 Thread Geoffrey Williams
Here's a couple: // namespace constant public namespace default_ns = http://fmr.com/BackOffice/PseSearch;; // init test public function init () : void { var xml : XML = PseSearchResponse xmlns=http://fmr.com/BackOffice/PseSearch; SearchPlan

[flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

2006-07-10 Thread ben.clinkinbeard
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