xml spy
Previous  Top  Next
Schema Design View

This is the default view when you double click an .XSD file.
Click the Schema Design view icon, ic_schema_view to display W3C conformant schemas.

A Schema is a model describing the structure of information. A Schema in XML, describes the possible arrangement of tags and text in a valid document. The purpose of a schema is to allow machine validation of document structure, to enable large volume XML transactions over the web.

Schemas are defined in terms of constraints:
·The content model constraint, describes order and sequence of elements  
·The datatype constraint, defines the valid units of data in the content model  

Instead of using the syntax of XML 1.0 DTD declarations, schema definitions use XML element syntax. A correct XML schema definition is, therefore, a well-formed XML document.

XML Spy features:
·Supports the Final XML Schema Recommendation of May 2nd 2001, and the ability to convert schemas from the April 7th 2000 Working Draft, or Oct. 24th Candidate Recommendation to the Final Recommendation.  
·Generation of DTD/Schema from an XML document  
·Conversion of DTD/Schema to different Schema flavors (DTD, DCD, XML-Data, BizTalk, W3C-Schema)  
·Generation of XML Schema documentation in Word or HTML format  

Viewing and editing XML Schema documents
XML Spy Schema editor allows you to view and edit schemas in two different ways:
·As a Schema overview, in list form  
·In a graphical view of specific schema components  

Schema overview
Open a XSD document in the DTD/Schemas folder of the project window, or double click on an XSD document in Explorer. The main window then displays the Schema overview.

The top window displays all Global "definitions" (elements, complex types etc.) in list form. The bottom window displays the corresponding attributes of the currently selected component (eg. Mgr. Prg etc.).

tut_schema_glob  

Content model
The content model is a graphical representation of a component. The tree structure as well as annotations etc. are shown for each element. This view supports drag and drop. Configure this view by selecting the menu option Schema design | View config.

To see graphical representation (Content model) of a component:

·Click on the ic_schem_part icon next to the component you want to display, or  
·Select the menu option Schema design | Display Diagram, or  
·Double click on a component name in the "Component Navigator" (Top right entry helper).  

The content model for that component, appears in a tree view.

tut_schema_diag  

To return to the Schema overview:

·Click the "Show Globals" icon ic_back2global to return to the Schema Overview.  
·Select the menu option Schema design | Display All Globals.  

To a
ppend or insert Components:
1.Click the Append ic_schem_app or Insert ic_schem_insicon at the top left of the component window.  
2.Select the component you want to append from the popup.  

ref_p101a  

To a
ppend or insert Attributes to a component:
1.Click the Append ic_schem_app or Insert ic_schem_insicon at the top left of the attribute window.  
2.Select the attribute you want to append/insert from the popup.  

ref_p101b  


Previous  Top  Next

⌐ 2002 Altova