AppendNode

AppendNode 1:

This method adds a new node to an existing node. The existing node and the name of the new node are transferred to the method as input parameters. The method returns a reference to the newly added node.

Syntax

METHOD AppendNode : SXmlNode
VAR_INPUT
  n    : SXmlNode;
END_VAR
VAR_IN_OUT CONSTANT
  name : STRING;
END_VAR

AppendNode 2: Return value

Name

Type

AppendNode

SXmlNode

AppendNode 3: Inputs

Name

Type

n

SXmlNode

AppendNode 4:/AppendNode 5: Inputs/Outputs

Name

Type

name

STRING

Sample call:

objMachines := fbXml.AppendNode(objRoot, 'Machines');