What is XML Schema?
An XML schema, commonly known as an XML Schema Definition (XSD), formally describes what a given XML document can contain, in the same way that a database schema describes the data that can be contained in a database (i.e. table structure, data types, constraints etc.).
The XML schema defines the shape, or structure, of an XML document, along with rules for data content and semantics such as what fields an element can contain, which sub elements it can contain and how many items can be present. It can also describe the type and values that can be placed into each element or attribute. The XML data constraints are called facets and include rules such as min and max length.
XML Schema is an XML based alternative to DTD.
An XML schema describes the structure of an XML document.
XML Schemas will probably be used in most Web applications as a replacement for DTDs because:
XML Schemas are supported by the W3C
XML Schemas are richer and more useful than DTDs
XML Schemas are written in XML
XML Schemas support data types
XML Schemas are extensible to future additions
XML Schemas support namespaces
Created By:
K.Dhanamjay
Assistant Professor
Dept of CSE
VEMUIT