CDATA

Ken Ray kray at sonsothunder.com
Fri Jan 26 12:35:58 EST 2007


On Fri, 26 Jan 2007 11:05:04 -0600, Ken Ray wrote:

> If you want to, you could use my XML Library that handles this properly 
> (I just tested), and since it's Transcript-only, you can use it in 
> tandem with the revXML external if you like.

Sorry, forgot to show how to do it:

Suppose your XML was:

    <?xml version="1.0"?>
    <test>
        <![CDATA[<p>Hey! 20857</p>
    <p>How are you?</p>]]>
    </test>

and was in a variable called "myXMLData". You'd do:

    get stsXML_LoadData(myXMLData)
    put stsXML_GetNodeData("/test")

which would put this in the message box:

    <p>Hey! 20857</p>
    <p>How are you?</p>

Anyway, you get the picture, and there's full docs if you need it...

Ken Ray
Sons of Thunder Software, Inc.
Email: kray at sonsothunder.com
Web Site: http://www.sonsothunder.com/



More information about the use-livecode mailing list