Skip to content

Latest commit

 

History

History
66 lines (49 loc) · 1.09 KB

File metadata and controls

66 lines (49 loc) · 1.09 KB

SetCDATA

Description

Sets the CDATA section of the specified element. The parameter elementPath is specified as a path of element names.

FUNCTION SetCDATA(
				XMLHandle   : LONGINT;
				elementPath : STRING;
				data        : DYNARRAY [] OF CHAR):INTEGER;
def vs.SetCDATA(XMLHandle, elementPath, data):
    return INTEGER

Parameters

Name Type Description
XMLHandle LONGINT
elementPath STRING
data DYNARRAY [] OF CHAR

Examples

VectorScript

procedure test;
var 	xml : longint;
	err : integer;
	mem : dynarray of char;
	value : string;

begin
	mem := '';

	xml := InitXML;	

	err := CreateNewXMLDocument( xml, 'root' );

	err := SetElementValue( xml, '/root/value', '34' );
	err := SetCDATA( xml, '/root/data', 'custom data' );

	err := WriteXMLMemory( xml, mem );

	AlrtDialog( mem );

	err := ReleaseXML( xml );
end;
run(test);

Python

See Also

GetCDATA

Version

Availability: from All Versions

This is drop-in function.

Category