NativeXml Help
TXmlNode.WriteAttributeInteger
procedure WriteAttributeInteger(const AName: Utf8String; AValue: integer; ADefault: integer); virtual;
Description
If the attribute with name AName exists, then set its value to the integer AValue. If it does not exist, then create a new attribute AName with the integer value converted to a quoted string. If ADefault = AValue, and WriteOnDefault = False, no attribute will be added.