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;
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
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,
3 matches
Mail list logo