CopyDocument

This method copies the contents of the DOM memory into a variable of data type String. The length to be written and the variable into which the resulting string is to be written are passed to the method as input parameters. The method returns the actually written length. Note that the size of the string variable is at least equal to the size of the XML document in the DOM.
Syntax
METHOD CopyDocument : UDINT
VAR_IN_OUT CONSTANT
sXml : STRING;
END_VAR
VAR_INPUT
nXml : UDINT;
END_VAR
Return value
Name | Type |
---|---|
CopyDocument | UDINT |
Inputs
Name | Type |
---|---|
nXml | UDINT |
/
Inputs/Outputs
Name | Type |
---|---|
sXml | STRING |
Sample call:
nLength := fbXml.CopyDocument(sTarget, SIZEOF(sTarget));