Chapter 3 Building XML Models


XML Diagram Basics

An XML diagram is the easiest way to define the structure and content of an XML document if you are not familiar with the syntax of XML Schema Definition (XSD), Document Type Definition (DTD) or XML-Data Reduced (XDR).

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:


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 Achievement sub-diagram follows:


 


Copyright (C) 2007. Sybase Inc. All rights reserved.