XML.HTMLTeacher.Com
[Search] [Contact] [Sitemap]
XML
[Main]
[Schema]
[Schema Structures]

[Classes]
[XHTML]
[XML]
[CSS]
[Design]
[Programming]
[Marketing]

Russian Doll Design

XML document:   employeerussian.xml
Schema document:   russiandoll.xsd

* A Russian Doll design involves the nesting of the schema components. (Just like russian dolls are nested inside one another.)

* An advantage to this design is that each element in the schema can be readily associated with the corresponding element in the XML document because the two documents are nested in the same way.

* The disadvantage to this design is that the nesting of the declarations can be confusing and difficult to maintain as you can easily get lost in the maze of nested levels if many are being defined. It would be easy to forget a closing tag. The definitions also cannot be reused.

Flat Catalog

XML document:   employeeflat.xml
Schema document:   flatcatalog.xsd

* A Flat Catalog design references globally declared components of the schema. In this design all elements are declared globally. The structure of the XML document is created by referencing these global element declarations at another point in the schema document.

Venetian Blind

XML document:   employeevenetian.xml
Schema document:   venetianblind.xsd

* A Venetian Blind schema layout involves declaring all of the elements globally using named complexTypes, groups and attribute groups. In this manner, these globally declared definitions may be reused.




All materials, tutorials and content are copyrighted by HTMLTeacher.Com.
Any use of any material, tutorials and/or content provided by this site is prohibited without expressed written consent of the author.

Copyright ©2003 HTMLTeacher.Com and Sonia Weimann