SetAttribute

SetAttribute 1:

This method sets the value of an attribute. The value has the data type String.

Syntax

METHOD SetAttribute : SXmlAttribute
VAR_INPUT
  a     : SXmlAttribute;
END_VAR
VAR_IN_OUT CONSTANT
  value : STRING;
END_VAR

SetAttribute 2: Return value

Name

Type

SetAttribute

SXmlAttribute

SetAttribute 3: Inputs

Name

Type

a

SXmlAttribute

SetAttribute 4:/SetAttribute 5: Inputs/Outputs

Name

Type

value

STRING

Sample call:

xmlAttr := fbXml.SetAttribute(xmlExistingAttr, 'Test');