Search the web
Sign In
New User? Sign Up
flexcoders · RIA Development with Adobe Flex
? Already a member? Sign in to Yahoo!

Yahoo! Groups Tips

Did you know...
Want your group to be featured on the Yahoo! Groups website? Add a group photo to Flickr.

Best of Y! Groups

   Check them out and nominate your group.
Having problems with message search? Fill out this form to ensure your group is one of the first to be migrated to the new message search system.

Messages

  Messages Help
Advanced
Addressing buried children in XML with default namespace- an easier   Message List  
Reply | Forward Message #43021 of 149660 |
RE: [flexcoders] Re: Addressing buried children in XML with default namespace- an easier way?

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-----
> From: flexcoders@yahoogroups.com
> [mailto:flexcoders@yahoogroups.com] 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 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, which sucks. Why can't use namespace
> point to an actual Namepsace object? I feel like this is a glaring
> hole in Flex's XML capabilities.
>
> Thanks,
> Ben
>
> > 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 to a constant like
> > MyAppClass.SEARCH_NAMESPACE, which is fairly disappointing.
> I suppose
> > the namespaces your app uses aren't something that will change very
> > often but it still seems like this is a shortcoming of the
> > implementation of E4X. I feel like I am being punished for using XML
> > that contains namespaces, as it is so crippled in comparison to
> > namespace-free XML.
> >
> > Adobe, can you fix this in a future release?
> >
> > Thanks,
> > Ben
> >
>
>
>
>
>
>
>
> ------------------------ Yahoo! Groups Sponsor
> --------------------~-->
> Yahoo! Groups gets a make over. See the new email design.
> http://us.click.yahoo.com/XISQkA/lOaOAA/yQLSAA/nhFolB/TM
> --------------------------------------------------------------
> ------~->
>
> --
> Flexcoders Mailing List
> FAQ: http://groups.yahoo.com/group/flexcoders/files/flexcodersFAQ.txt
> Search Archives:
> http://www.mail-archive.com/flexcoders%40yahoogroups.com
> Yahoo! Groups Links
>
>
>
>
>
>
>
>



Wed Jul 12, 2006 2:11 pm

bdeitte
Offline Offline
Send Email Send Email

Forward
Message #43021 of 149660 |
Expand Messages Author Sort by Date

The struggle against XML with a default namespace continues... Here is my xml: <PseSearchResponse xmlns="http://fmr.com/BackOffice/PseSearch"> <SearchPlan> ...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 10, 2006
7:59 pm

Here's a couple: // namespace constant public namespace default_ns = "http://fmr.com/BackOffice/PseSearch"; // init test public function init () : void { var...
Geoffrey Williams
gsolo_01
Online Now Send Email
Jul 10, 2006
8:45 pm

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....
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 10, 2006
9:21 pm

It seems that the only way to use the full functionality of E4X with namespaced XML is by using this method: namespace foo =...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 11, 2006
1:02 pm

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...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 12, 2006
1:53 pm

You can reference a namespace object if you put this in a file: package mypackage { public namespace DoSearch = "http://site.com/BackOffice/DoSearch"; } ...
Brian Deitte
bdeitte
Offline Send Email
Jul 12, 2006
2:42 pm

That doesn't seem to work for me. I have this file: package com.fmr.tests.PSA_Cairngorm.model { public namespace CLIENT_SEARCH_NAMESPACE = ...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 12, 2006
3:49 pm

Not sure what I was doing wrong here but I've got this worked out and documented here: ...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 14, 2006
7:55 pm

Has anyone else gotten this to work? Ben...
ben.clinkinbeard
ben.clinkinb...
Offline Send Email
Jul 12, 2006
7:49 pm
Advanced

Copyright © 2009 Yahoo! Inc. All rights reserved.
Privacy Policy - Terms of Service - Guidelines - Help