CopyDocument

CopyDocument 1:

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

CopyDocument 2: Return value

Name

Type

CopyDocument

UDINT

CopyDocument 3: Inputs

Name

Type

nXml

UDINT

CopyDocument 4:/CopyDocument 5: Inputs/Outputs

Name

Type

sXml

STRING

Sample call:

nLength := fbXml.CopyDocument(sTarget, SIZEOF(sTarget));