SetChildAsInt

SetChildAsInt 1:

This method sets the value of an XML node. The value is transferred to the method as input parameter of data type Integer.

Syntax

METHOD SetChildAsInt : SXmlNode
VAR_INPUT
  n     : SXmlNode;
  value : DINT;
END_VAR

SetChildAsInt 2: Return value

Name

Type

SetChildAsInt

SXmlNode

SetChildAsInt 3: Inputs

Name

Type

n

SXmlNode

value

DINT

Sample call:

xmlNode := fbXml.SetChildAsInt(xmlExistingNode, 42);