Schema: yes or No

530 Words2 Pages

Well formed XML needs an additional step in order to properly validate the structure and vocabulary of the document. One method of this validation is using and XML schema, also known as the XML Schema Definition (XSD). (Barnette et al., 2004) Does this format for validation use the best structural methods to express vocabulary and properties in XML markup or could other options such as the DTD specification have provided similar benefits. The XSD structure and components should be discussed in detail in order to provide the best answer to this query.

Components
The Schema structure consists of the following workings to properly identify and define necessary attributes, elements, constraints and validation rules; such as the components defined by properties which are further defined by values noted by Barnette et al. (2004).
The workings of XSD; (Barnette, 2004) (Fawcett et al, 2012)(N/A,2000)
• Best practice necessitates and document with a .xsd extension
• Being XML the XML version statement is required i.e. “”
• Next a namespace declaration which becomes the XML root element “”
• Component properties and definitions (tag descriptions, attributes and designations) such as “”
These basic rules allow user defined as well as built-in data types to define information which allows the schema to be extensible just as XML itself. (N/A, 2001). With these basic structural boundaries in the Schema benefits noted are; (N/A,2001)
• Standards based definitions
• Expansion of well formed guidelines to prevent errors in processing
• XML parsing, editing and manipulation
• Namespace support allowing for complex or simple schema con...

... middle of paper ...

... D., 2012. Beginning XML. 5th ed. Indianapolis, IN: John Wiley & Sons, Inc.
Gulbransen, D., 2002. Alternatives to XML Schemas. [Online] Available at: http://www.quepublishing.com/articles/article.aspx?p=26034 [Accessed 30 MArch 2014].
Jelliffe, R., 2006. Why we will always have problems with XML Schemas, even when the bugs go. [Online] Available at: http://www.oreillynet.com/xml/blog/2006/08/why_we_will_always_have_proble.html [Accessed 30 March 2014].
Kawaguchi, K., 2002. W3C XML Schema: DOs and DON'Ts. [Online] Available at: http://www.kohsuke.org/xmlschema/XMLSchemaDOsAndDONTs.html [Accessed 29 March 2014]. w3.org, 2000. An XSD Example. [Online] Available at: http://www.w3schools.com/schema/schema_example.asp [Accessed 29 March 2014]. w3.org, 2001. Why Use XML Schemas? [Online] Available at: http://www.w3schools.com/schema/schema_why.asp [Accessed 30 March 2014].

Open Document