@XMLAttribute

The complex property @XMLAttribute is specified on a Record-part field and identifies characteristics of an XML attribute. The property includes the following field:
name
The name of the XML attribute. The default value is the name of the record field.

If you are writing a record to an XML string, the value of the property field is assigned to the attribute in the XML string. If you are reading an XML string into a record, the EGL Runtime issues a RuntimeException if a mismatch is found between the actual and expected attributes.

namespace
The XML namespace associated with the XML attribute. If you are writing the record to an XML string, the possibilities are as follows:
  • If you specify a namespace, the EGL Runtime places the attribute in that namespace, assigning a prefix to the attribute name
  • If you do not specify a namespace, the attribute is not in any namespace

When reading an XML string into the record, the EGL Runtime issues RuntimeException if a mismatch is found between the actual and expected namespace status of the attribute.


Feedback