--- In [email protected], Claus Wahlers <[EMAIL PROTECTED]> wrote:
>
> 
> > I CAN get to the attributes by doing the following:
> > myAtt:XMLList = xmlData.reg.attribute("reg.1.user");
> > 
> > but I would really like to use the E4X capabilities to make this
> > easier. Is there an easy way to set the reg.1.user attribute?
> 
> var xml:XML = <root foo.bar="hello world" />
> trace([EMAIL PROTECTED]"foo.bar"]);
> // hello world
> [EMAIL PROTECTED]"all.your.base"] = "are belong to us";
> trace(xml.toXMLString());
> // <root foo.bar="hello world" all.your.base="are belong to us"/>
> 
> Cheers,
> Claus.
> 
> -- 
> claus wahlers
> cĂ´deazur brasil
> http://codeazur.com.br/
> http://wahlers.com.br/claus/blog/
>

Perfect! I thought I tried every syntax trick I could think of, maybe
just forgot to try square brackets. I couldnt find anything in the
documentation about it.

Thanks for your help!


Reply via email to