AttributeFromIterator

AttributeFromIterator 1:

This method converts the current position of an iterator to an XML attribute object. The iterator is transferred to the method as input parameter.

Syntax

METHOD AttributeFromIterator : SXmlAttribute
VAR_INPUT
  it : SXmlIterator;
END_VAR

AttributeFromIterator 2: Return value

Name

Type

AttributeFromIterator

SXmlAttribute

AttributeFromIterator 3: Inputs

Name

Type

it

SXmlIterator

Sample call:

xmlIterator := fbXml.AttributeBegin(xmlNode);
WHILE NOT fbXml.IsEnd(xmlIterator) DO
  xmlAttr     := fbXml.AttributeFromIterator(xmlIterator);
  nAttrValue  := fbXml.AttributeAsInt(xmlAttr);
  xmlIterator := fbXml.Next(xmlIterator);
END_WHILE