Can you not use [new QName("*","nodeName")] to get nodes regardless of namespace in E4X? I haven't tried this, but it makes sense to me.
-Josh On Mon, Sep 8, 2008 at 4:15 PM, Tim Rowe <[EMAIL PROTECTED]> wrote: > I've just spent the last 8 hours attempting to get an XML document bound > to a data provider, and fell into the following gotcha - my problem was that > the default xmlns on the document can't be defined. There may be other > factors involved here, but what was happening was even though I was passing > in a structure similar to yours below every XMLList property would end up > with something like root sids="58" xmlns="MyDocument"> (even though it > wasn't passed in via the actual XML). I couldn't access anything via > .Child("module"), for example, until I had got rid of that default. > > While this might not necessarily be your problem, it certainly doesn't > help, and took two of us ages to track down. Needless to say, we won't be > making that mistake again, and after getting that all sorted it was > relatively painless to traverse the XML document of the elements we had in > our DOM. > > *Tim Rowe* > *Software Engineer* > *carsales.com Ltd* > > Level 1, 109 Burwood Road > Locked Bag 3333 > Hawthorn VIC 3211 > > t: 03 9093 8600 (Reception) > t: 03 9093 8757 (Direct) > f: 03 9093 8697 > > ------------------------------ > *From:* flexcoders@yahoogroups.com [mailto:[EMAIL PROTECTED] *On > Behalf Of *Rafael Faria > *Sent:* Monday, 8 September 2008 3:47 PM > *To:* flexcoders@yahoogroups.com > *Subject:* [flexcoders] Changing Root Node attributes > > Hello All, > > I need your help again. > > I make a call and get in return a XML. With this XML, i feed my tree's > dataprovider. It is something like this: > > <root sids="58"> > <module url="home" label="Home" sid="52"/> > <module url="grantees" label="Grantees" sid="53"/> > <module url="multimedia" label="Multimedia" sid="54"/> > <page label="Contact Us" id="2" redirect="contact" sid="55"/> > <page label="Privacy Policy" id="7" redirect="privacy" sid="56"/> > <page label="Apply for Grants" id="5" redirect="apply" sid="57"/> > </root> > > The thing is, at some point i need to get the "sids" from the root > node (so far no problem, i'm using > XML(tree.dataProvider).attribute('sids').toXMLString() and it works) > but the catch is that i need to change it to 59 and i can't manage to > change it no matter what. > > Any one could throw some ideas so i can solve my problem ? please? :P > > thanks > Raf > > > -- "Therefore, send not to know For whom the bell tolls. It tolls for thee." http://flex.joshmcdonald.info/ :: Josh 'G-Funk' McDonald :: 0437 221 380 :: [EMAIL PROTECTED]