![](/images/new-backgrounds/1214202/214202399x1.webp)
Generating an XML model from an
Generating an XML model from an Object- Oriented Model
This section explains how to generate an XML model from an Object-
Oriented Model.
Generating XML Model objects
When you generate an XML model from an OOM, PowerDesigner translates
OOM objects into specified XML Model objects as follows:
OOM Object | Generated object in an XML model |
Class | Element. A class is generated as a child element when it |
| has one composition link with another class |
Class attribute | Element or element attribute (See generation options) |
Identifier | Key |
Domain | Simple type |
Abstract class | Complex type |
Abstract class | Complex type attribute |
attribute |
|
|
|
OOM packages are generated into XML diagrams.
An OOM is generated into several XML diagrams:
♦A global diagram displaying a hierarchical view of all the generated elements
♦One diagram for each class diagram in order to keep the OOM design. The generated diagram displays the same object symbols as the source diagram
The Global Diagram displays the symbol of a root element called
Application. This Application element (which has no equivalent in the source
OOM) groups together all the key constraints (see Constraints page of the
Application property sheet) generated from the OOM identifiers.
Select Symbol→Show Symbols to reveal the other generated XML Model objects (simple types and complex types).
188 | PowerDesigner |