@XMLAttribute

The @XMLAttribute complex property is specified on a Record-part field and identifies characteristics of an XML attribute. The property includes the following fields:
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 code issues a RuntimeException if a mismatch is found between the actual and expected attributes.

namespace
The XML namespace that is 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 code places the attribute in that namespace so that a prefix is assigned 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 code issues RuntimeException if a mismatch is found between the actual and expected namespace status of the attribute.


Feedback