![]() |
![]() | ![]() | ![]() | XML Schema EditorXMLSpy® 2010 includes a powerful graphical XML Schema editor, with a visual design paradigm and intelligent entry helpers that help you model, edit, and document XML Schemas with ease. Since the XML Schema editor in XMLSpy allows you to create schemas in a graphical manner, you can focus on the semantics of your schema while leaving the syntactical details of the XML Schema language to XMLSpy.
XML Schema Editor Design Menu | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||
| XML Schema Editor | View Flash demo Click to enlarge |
To edit the content model, simply drag-and-drop to rearrange elements or use the right mouse button to select context-sensitive options. You can return to the global view at any time by clicking the Display Globals icon.
With this system, you're able to edit components at a global level and then edit the content model of individual components. When a component is selected, it is highlighted in blue, and its properties are displayed in a series of editable entry helper windows.

Elements can be added to the content model easily by dragging (or copying and pasting) them from the XML Schema Navigator window to the desired position in the content model.
While most parameters of an element node (such as its name, type, and major facets) can be edited directly in the tree view, the full details of the selected node are always visible (and can be edited) in the detail views in separate floating windows:

Configuring identity constraints (i.e., key/keyref/unique values) is an important aspect of XML Schema development, especially for database users. XMLSpy includes enhanced support for editing identity constraints with helpful visual cues and editing options.
In addition to the Identity Constraints tab in the Schema Overview view, there is a conveniently located Identity Constraints tab in the Components entry helper window of the Content Model View. This tab displays all existing constraints in a tree view and allows you to easily modify or create new relationships.
Furthermore, identity constraints are indicated by green lines, informative icons, and mouse-over messages in the Content Model View. Selecting a node causes its properties to be indicated by a solid green connecting line, while properties of unselected nodes are indicated with a dashed line. A right-click menu allows you to easily add new relationships and specify field and selector values by typing them manually, using drop-down entry helpers, or by simply dragging and dropping the desired nodes.

When deriving a complex type by restriction during XML Schema development, parts of the content model of the base type are rewritten in the derived type. This can be confusing if the content model is complex, when it becomes difficult to remember exactly what the content model of the base type looks like as you’re making changes.
The graphical XML Schema editor in XMLSpy includes a way to easily visualize and edit the base type and its restrictions, helping you ensure restrictions are valid as you make changes. All components of the base type, as well as how they compare to the current restricted type, are displayed in the diagram of the content model for the restricted complex type. In addition, the XML Schema editor provides visual hints to show you all possible ways to restrict the base type, making it easy to correctly restrict the derived type.

Icons within the content model display allow you to make changes while preserving a visual record of the original base type. For instance, clicking the “X” icon next to an element in the base type removes it and changes its display. You can add the element back at any time by clicking the “+” icon.

The smart restrictions display supports many advanced features for visualizing restricted types, including a drop down menu that presents you with valid choices for changing compositors, “+” or “-” icons for changing the number of times element groups may occur, and much more.
The complex type restriction visualization and editing is another unique feature you'll find only in XMLSpy, the world’s leading XML and XML Schema editor.
The graphical XML Schema editor in XMLSpy also lets you validate naming and coding conventions outside of the capabilities of the XML Schema standard. This means that you can easily apply rules to control what elements/attributes are called in addition to the naming constraints already provided. For example, you may want to specify that all tags are written using lower case letters. You can also use coding conventions to enforce more complex rules in your schemas, such as disallowing anonymous type definitions, for example.
This feature complements the already robust find-in-files capabilities of XMLSpy by adding functionality specialized for schema development. The Find in Schemas window allows you to perform detailed find and replace operations within single schemas and across complex multi-file schemas with ease. Several options for find/replace are available, and multiple tabs allow you to perform multiple searches without losing your previous results.
In addition to offering these flexible editing capabilities, the XMLSpy XML Schema editor is also highly configurable. It lets the user choose which parameters should be displayed and how the display should be formatted:

The XML Schema editor provides support for aggregated schemas, allowing you to import schema components from other namespaces, include components from the same namespace, or globally redefine an existing schema component to meet your current needs. You can also connect to the SchemaAgent® 2010 Server and have access to all schemas in the SchemaAgent® 2010 server path as well as their components in the XMLSpy info windows and entry helpers. When you insert one of these components, you can choose which schema includes the definition you require, and SchemaAgent® 2010 will automatically create the required include/import/redefine statements. Learn more about using the XMLSpy XML Schema editor with SchemaAgent.
If you want to base your content model on an existing structure, the XML Schema editor in XMLSpy provides utilities to automatically infer XML Schemas from XML instance documents and relational databases, or convert between XML Schema and DTD dialects – with the click of a button.

You can also automatically generate an XML Schema or DTD from use cases, and inversely, you can auto-generate sample XML instance documents from your XML Schema/DTD to test its functionality. The graphical XML Schema editor even allows you to create sample values for XML instance generation so that they will contain arbitrary results, selected from pre-supplied values. You can choose to have this data can populate your sample instance randomly, by cycling through, or by using only the first entry in the list.

XML Schema has gained wide-spread acceptance, and therefore it's important to provide comprehensive documentation for published schemas. The XMLSpy XML Schema editor makes it easy for schema designers to produce such documentation by offering a highly configurable automatic schema documentation generator that allows you to save schema diagram snapshots and can automatically generate full documentation, including all diagrams, source fragments, and convenient cross-references.

The documentation includes all element properties and attribute annotations and can be generated in HTML or Microsoft Word format. An example of the documentation for one element in HTML is below:

Experience the power of the graphical XML Schema editor - Download a free 30-day trial of XMLSpy.

![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]()
![]() | |||||||||||||||||||||||||||||||||||||||||||||||||


| Company | Legal | Press | Partners | Careers | Sitemap | Contact Us | Altova Blog | |||
|
