Wednesday, 29 May 2013

What is XML Schema


What is XML Schema?

An XML Schema describes the structure of an XML instance document by defining what each element must or may contain.XML Schema is expressed in the form of a separate XML file.

  1. XML Schema provides much more control on element and attribute datatypes.
  2. Some datatypes are predefined and new ones can be created.
  • <xsd:schema  xmlns:xsd="">
        <xsd:element  name="test">


Figure 2: XML Schema