SetChild

SetChild 1:

This method sets the value of an XML node. The value is transferred to the method as input parameter of data type String. The input parameter cdata indicates whether the value of the node is to be encapsulated in a CDATA function block, so that certain special characters such as "<" and ">" are allowed as values.

Syntax

METHOD SetChild : SXmlNode
VAR_INPUT
  n     : SXmlNode;
END_VAR
VAR_IN_OUT CONSTANT
  value : STRING;
END_VAR
VAR_INPUT
  cdata : BOOL;
END_VAR

SetChild 2: Return value

Name

Type

SetChild

SXmlNode

SetChild 3: Inputs

Name

Type

n

SXmlNode

cdata

BOOL

SetChild 4:/SetChild 5: Inputs/Outputs

Name

Type

value

STRING

Sample call:

xmlNode := fbXml.SetChild(xmlExistingNode, 'SomeText', FALSE);