Assigning the Root Element Name of an XML Object
|
PREVIOUS
NEXT
|
The XOM is composed of types, and an XML object is characterized by its type. If your configuration has several XML root elements defined in a schema, and these elements are related to the same type, you need to add an element name to the XML object so that the rule engine knows which root element to use. If you do not do this, you will have parsing problems.
To specify which root element you want to reference:
-
Use an API such as
setAsRootElement(). For example:
IlrXmlObject xmlObject = ...;
xmlObject.setAsRootelement( "myElement" );
Related Concepts
Related Tasks