ChildByName

ChildByName 1:

This method is used to navigate through the DOM. It returns a reference to a child element in the XML document. The start node and the name of the element to be returned are transferred to the method as input parameters.

Syntax

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

ChildByName 2: Return value

Name

Type

ChildByName

SXmlNode

ChildByName 3: Inputs

Name

Type

n

SXmlNode

ChildByName 4:/ChildByName 5: Inputs/Outputs

Name

Type

name

STRING

Sample call:

xmlMachines := fbXml.ChildByName(xmlDoc, 'Machines');