Try OpenEdge Now
skip to main content
ABL Reference
Handle Attributes and Methods Reference : WRITE-CDATA( ) method
 

WRITE-CDATA( ) method

Adds a CDATA block to an XML document represented by a SAX-writer object.
Return type: LOGICAL
Applies to: SAX-writer object handle

Syntax

WRITE-CDATA ( CDATA_block )
CDATA_block
A CHARACTER or LONGCHAR expression evaluating to the value of the CDATA block.
Call this method to add character data to the XML document. Character data in an XML document belongs exclusively in leaf nodes. (A leaf node is a bottom node; one that does not have any child nodes in a hierarchical tree structure, like an XML document.) Character data cannot appear outside of the root (document) node. The SAX-writer puts the block into the format of a CDATA section by adding the correct open and close tags using this syntax:

Syntax

<![CDATA[ CDATA_block ]]>
This method does not change the WRITE-STATUS attribute.
Note: The character data is serialized and not escaped by the SAX-writer.