XML Schema Editor
Encyclopedia
The W3C's XML Schema Recommendation defines a formal mechanism for describing XML
XML
Extensible Markup Language is a set of rules for encoding documents in machine-readable form. It is defined in the XML 1.0 Specification produced by the W3C, and several other related specifications, all gratis open standards....

 documents. The standard has become popular and is used by the majority of standards bodies when describing their data.

The standard is versatile, allowing for programming concepts such as inheritance and type creation, but it is complex. The standard itself is highly technical and published in 3 different parts, making it difficult to understand without committing large amounts of time.

XML Schema Editor Tools

The problems users face when working with the XSD standard can be mitigated with the use of graphical editing tools. Although any text-based editor can be used to edit an XML Schema, a graphical editor offers advantages; allowing the structure of the document to be viewed graphically and edited with validation support, entry helpers and other useful features.

Editors that have been developed so far take several different approaches to the presentation of information:

Text View

The text view of an XML Schema shows the schema in its native form. XML Schema Editors generally add to the text view with features including inline entry helpers and entry helper windows, code completion, line numbering, source folding, and syntax coloring. For more lengthy and complex schema documents, this is often difficult for even highly trained content model architects to work with, paving the way for software companies to come up with new and inventive way for users to visualize these documents.

Physical View

A physical view of an XML Schema displays a graphical entity for each element within the XML Schema. This can make an XSD document easier to read, but does little to simplify editing. This is largely due to the structure of the XSD Standard, where container elements are required which are dependent on the base type used and the types contained within. This means that small changes to the logical structure can cause changes to ripple through the document.

The structure of the XSD standard also means entities are referenced from other locations within the document. Some editors allow these to be expanded and viewed in the location they are referenced from but others don't, which means manual cross referencing may be required.

Logical View

A logical view shows the structure of the XML Schema without showing all the detail of the syntax used to describe it. This provides a clearer view of the XML Schema, making it easier to understand the structure of the document, and makes it easier to edit. Since the editor shows the logical structure of the XSD document, there is no need to show every element, removing much of the complexity and allowing the editor to automatically manage the syntactical rules.

Example

The following example will show the source XSD, logical and physical views for a simple schema.



























Physical View Logical View


A Sample XML Document for the schema




John
Doe




As you can see the logical view provides more information, but without the syntactical clutter, making it easier to understand and work with.

XML Schema Editors

As the XSD standard has gained support, a host of XML Schema editors have been developed.
Application Name Screenshot Code Editor Physical Editor Logical Editor Split Code/Diagram View
Altova
Altova
Founded in 1992, Altova is a commercial software development company with headquarters in Beverly, MA, USA and Vienna, Austria that produces integrated XML, database, UML, and data management software development tools.-Products:Altova’s products include:...

 XMLSpy
XMLSpy
XMLSpy is an XML editor and integrated development environment from Altova. XMLSpy allows developers to create XML-based and Web services applications using technologies such as XML, XML Schema, XSLT, XPath, XQuery, WSDL, and SOAP...

 
screenshots
Eclipse
Eclipse (software)
Eclipse is a multi-language software development environment comprising an integrated development environment and an extensible plug-in system...

 XSD Editor (eclipse.org)
screenshots
Limited Editing
Oxygen xml screenshots
Read only
Stylus Studio screenshots
Read only
XML Fox - Freeware Edition screenshots
Eclipse Data Types (XSD) Editor (free) Short Introductory on Youtube screenshots
The source of this article is wikipedia, the free encyclopedia.  The text of this article is licensed under the GFDL.
 
x
OK