XML Schema and Stylus Studio. Introduction to XML Schema. XML Schema defines building blocks of a XML document XML Schemas are alternative to DTD Why XML Schema? Supports data types Written in XML Supports namespaces Extensible to future additions. XML Schema.
XML Schema and Stylus Studio
Click on this to create New Element Definition
Click on this to create New Complex Type Element
Right Click on this to add sequence type to Complex Type Element
Right Click on this to add Element Definition to Complex Type Element
Click on this to get drop down menu to select the data type.
Click here to get Tree View of the Schema.
Click on the ID button to add new Identity constraint
After adding an Identity constraint, You can select the constraint type like Unique, key or keyref from drop-down menu
Assign a name for the new key identity
Click on the ID button to add new selector
After adding new selector, You can select the Selector/field from drop-down menu
Provide the name of primary key to which it refers
Assign a name for the new keyref
Click on this to view actual code for XML Schema
Adding Xpath expression in this place
Click on this to Indent XML tags
Click on this to validate the XML Schema