Attributes

XML attributes are mapped as fields of the dynamic class.

Attributes in the XML tree can only be of a simple type.

When an XML schema is imported as a dynamic XOM, the XML attributes or elements are represented as instance attributes.

Attributes representing mandatory XML attributes or elements can be accessed directly as regular Java™ object attributes.

Important:
  1. Do not to create access attributes representing optional XML attributes or elements, as their values might be unknown.

  2. For Java object attributes, isknown always returns true, even if the attribute is equal to null. Only XML objects can have unknown attributes. See Managing unknown operators on attributes and elements for details.