Re: [flexcoders] CDATA and E4X

2007-06-05 Thread Jesse Warden
Rad, thanks a bunch Michael! On 6/4/07, Michael Schmalle <[EMAIL PROTECTED]> wrote: > > > > > > > Hey man, > > I just hacked this out. it's ugly but works. > > > function cdata(string:String):XML{ > return new XML('') > } > > var username = "Jesse"; > var lastname = "Warden"; > > v

Re: [flexcoders] CDATA and E4X

2007-06-04 Thread Michael Schmalle
Hey man, I just hacked this out. it's ugly but works. function cdata(string:String):XML{ return new XML('') } var username = "Jesse"; var lastname = "Warden"; var re:XML = {username} {cdata(lastname)} Peace, Mike On 6/4/07, Jesse Warden <[EMAIL PROTECTED]> wrote: How do

[flexcoders] CDATA and E4X

2007-06-04 Thread Jesse Warden
How do I use CDATA with E4X? Reading CDATA nodes is easy. Sending, however, is hampered by the fact that I cannot use binding within CDATA nodes, and all text is URL encoded. So, if I do this: username = "Jesse"; lastname = "Warden"; {username} It'll look like this: Jesse