What is the Purpose of XML Schema

The Purpose of XML Schema

XML provides a grammar for parsing a particular file or stream format. This XML grammar covers basic syntax, the most interesting being that of element tags and attribute specifications. Most applications need far more structure. XML Schemas provide a mechanism for specifying more extensive grammar constraints. The ability to guide the layout of an XML document makes that XML document much more predictable. A programmer can examine an XML schema and know exactly what corresponding XML documents look like. Additionally, a program can reject an XML document out of hand when the XML does not conform to the appropriate XML schema

An XML schema specifies valid elements and attributes in an XML instance. Furthermore, a schema specifies the exact element hierarchy for nested elements. A schema specifies options such as limits on the number of occurrences of a type of element and various other constraints placed on the XML instance. In addition, a schema specifies a range for the value of an element or attribute

XML Schema Document

The value of an element is the text between the start- and end-tags; the value of an attribute is the text between the quotes. An XML schema document is the XML representation of all or part of an XML schema. Specifically, one or more XML schema documents describe an entire XML schema. Most of the elements in a schema document are XML representations of schema components; the other elements support assembling a schema from a set of schema documents


Related Topic What is XML Schema Namespace Recommendation
XML Infoset and XPath Recommendation
Useful Regular Expression Regex Syntax and Examples the Web Developer Need to Know
What is Ip Address Spoofing
Abbrevations for Network terms
xml schema  XHTML  RSS  Syntax  

nScraps.com 2011   Privacy Policy  Terms of Service  Feedback