revXMLPutIntoXMLNode - How do I create CDATA?

Terry Judd tsj at unimelb.edu.au
Wed Jan 21 17:06:52 EST 2004


>--- Terry Judd <tsj at unimelb.edu.au> wrote:
>>Dear revXML gurus - so - I use the revPutIntoXMLNode
>>command to put
>>some text between a pair of tags, but how do I
>>specify that I want it
>>to be CDATA? If the original xml includes CDATA and
>>I write to that
>>node it becomes plain text.
>>
>>Cheers,
>>
>>Terry...
>>
>
>Hi Terry,
>
>I haven't actually tested this, but you could try the
>'revAppendXML' command for this purpose.
>
>Jan Schenkel.

Thanks Jan - I was using revAppendXML to append some 'template' xml 
and then revPutIntoXMLNode to populate it. Seems like I'll have to 
append the xml a node at a time if I want to add it as CDATA. 
urlEncode(ing) the data will suffice for internal purposes but I want 
to be able to export the xml with CDATA at some stage.

Cheers,

Terry...

-- 
___________________________________________________________________________
Dr Terry Judd

Lecturer in Educational Technology (Design)
Biomedical Multimedia Unit
Faculty of Medicine, Dentistry & Health Sciences
The University of Melbourne
___________________________________________________________________________


More information about the use-livecode mailing list