Home. 
.

transparent

transparent

transparent

XML Schemas in UML

UModel® 2009 includes a special diagram type and code generation support for XML Schemas.

The UModel® 2009 XML Schema diagram renders XML Schemas in a format similar to UML class diagrams.

The UModel® 2009 XML Schema diagram shows schema global elements (elements, simpleTypes, and complexTypes) as classes, with schema element attributes in the attributes compartment. UModel® 2009 uses UML notes to display schema details. (The operations compartment is empty, since the XML Schema specification has no corresponding feature.)

UML use case diagram

Click image to enlarge database tool screenshot

Import XML Schemas into UModel

You can create a UModel® 2009 UML project from an existing XML Schema through the Project menu by selecting the Import XML Schema option.

XML Schema in UML

The XML Schema is treated as application source code and reverse-engineered to create a UModel® 2009 project. The project file and the diagrams it contains are a model of the XML Schema, not the schema itself.

Since the UModel® 2009 project and the actual XML Schema are separate files, the UML model of the schema provides a level of abstraction between the schema design and the actual XSD. This allows developers working in teams to develop schema enhancements in a collaborative process by modifying the UModel® 2009 project, treating the UML model as a blueprint.

UModel Schema Diagram Toolbar

The UModel® 2009 XML Schema diagram features a special toolbar to provide easy access to XML Schema elements:

UML use case diagram

Click image to enlarge database tool screenshot

You can edit UModel® 2009 XML Schema diagrams using the same visual editing tools available for the other diagrams in your model.

XML Schema in UML

Synchronize UML Models with XML Schema Files

Changes made to the UML model are not implemented in the XSD file until the model is synchronized through the UModel® 2009 Project menu:

XML Schema in UML

UModel® 2009 also supports round-trip engineering for XML Schema files. If the schema is modified outside UModel® 2009 – such as in XMLSpy® 2009, the industry-standard XML development environment – you can use the UModel Project menu to synchronize changes back to the UModel project and XML diagram.

Of course you could design a brand new XML Schema from scratch using XML Schema diagrams in UModel® 2009. But for most XML data-modeling projects, you'll want to check out the powerful, specialized schema editing and validation features of Altova XMLSpy® 2009, the industry-standard development environment for all XML technologies. One developer on your team can create and maintain schema using XMLSpy® 2009, and other developers can keep their UModel® 2009 projects synchronized by round-trip engineering the XSD file.

XML Schema in UML

XML Schemas and Source Code in a Single Model

A single UModel® 2009 project can include an XML Schema diagram to describe a data structure and class diagrams that generate code in a programming language for the application’s dynamic functionality. You can easily include both the XSD profile and a programming language profile in your project model tree.

The Include dialog allows you to add multiple profiles, for instance to use XSD and Java in a single project.

XML Schema in UML

Separate components allow you to assign XML Schemas for XSD output and UML classes for Java output.

UML use case diagram

Click image to enlarge database tool screenshot



UML use case diagram

Click image to enlarge database tool screenshot

During code generation UModel® 2009 will write the XML Schema file and your Java source code files.

You can also take advantage of the UModel® 2009 Share Package feature to add a UModel® 2009 XML Schema-based model as a subproject.

See for yourself how easy it is to diagram XML Schema in your UModel® 2009 projects -- download a free 30-day trial today!



transparent
Download
Pricelist
Buy
Video
Comparison
Datasheet
Print
Mail
Digg
delicious
.
.

UML logo

.
.

transparent

transparent