XML Diagrams

An XML diagram provides a graphical view of the elements that comprise an XML schema definition in a tree format.

Note: To create an XML diagram in an existing XSM, right-click the model in the Browser and select New > XML Model Diagram. To create a new model, select File > New Model, choose XML Model as the model type and XML Model Diagram as the first diagram, and then click OK.

With the user-friendly graphical interface of PowerDesigner XML Model, you can build an XML diagram and then generate automatically an XSD, a DTD or an XDR file.

The following example shows the diagram of an XSM which models an XML schema for Resume documents:



Right-click a symbol in an XML diagram and select one of these features:
Note: The Symbol > Group Symbols feature is only available for free symbols in an XML diagram.

If an XML model is too large or too complex, you can create several diagrams to have partial views of the model and focus on certain objects.

For example, the original Resume diagram could be split into five diagrams, corresponding to the five main objects of the model (Main, Contact, Achievement, Description and Address).

The following illustration shows the Achievement sub-diagram: