ILOG JRules User Guide > Integrating Application Data > Reference > Mapping Between XML Schema and Dynamic Classes > XML Declarations > Attributes

An XML attribute is mapped as a dynamic class field. 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 (see IlrAttribute).

While the attributes representing mandatory XML attributes or elements can be accessed directly as regular Java attributes, care must be taken not to access attributes representing optional XML attributes or elements, as their values may be unknown.

Note
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.

Related Reference

Elements
Groups
Appinfo
Schema Member to Dynamic Class Field Name
XML Binding