An XML diagram provides a graphical view of the elements that comprise an XML schema definition in a tree format.
To create an XML diagram in an existing XSM, right-click the model in the Browser and select . To create a new model, select XML Model , chooseas 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:
The
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: