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('![CDATA[' + string + ']]') } var username = Jesse; var lastname = Warden;

[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; nodes node{username}/node node![CDATA[{lastname}]]/node

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('![CDATA[' + string + ']]') } var username = Jesse; var lastname = Warden; var re:XML = nodes node{username}/node node{cdata(lastname)}/node /nodes Peace, Mike On 6/4/07,