AppendAttributeCopy

AppendAttributeCopy 1:

This method adds a new attribute to an existing node. The name and value of the new attribute are copied from an existing attribute. The existing attribute is transferred to the method as input parameter.

Syntax

METHOD AppendAttributeCopy : SXmlAttribute
INPUT_VAR
  n    : SXmlNode;
  copy : SXmlAttribute;
END_VAR

AppendAttributeCopy 2: Return value

Name

Type

AppendAttributeCopy

SXmlAttribute

AppendAttributeCopy 3: Inputs

Name

Type

n

SXmlNode

copy

SXmlAttribute

Sample call:

xmlNewAttribute := fbXml.AppendAttributeCopy(xmlNode, xmlExistingAttribute);