NodeText

NodeText 1:

This method returns the text of an XML node. The XML node is transferred to the method as input parameter.

If the text of an XML node is longer than 255 characters, the method CopyNodeText must be used.

Syntax

METHOD NodeText : STRING(255)
VAR_INPUT
  n : SXmlNode;
END_VAR

NodeText 2: Return value

Name

Type

NodeText

STRING(255)

NodeText 3: Inputs

Name

Type

n

SXmlNode

Sample call:

sMachine1Name := fbXml.NodeText(xmlMachine1);