XML Scheme commonly known as XML Schema Definition. It is used to describe the elements and attribute for a class of XML document. They can also specifies the structure of an XML document. It is similar to a database schema that describes the data in a database.


Example of schema file.


Now see the xml file using XSD file


Types of Scheme

There are two types of XML Scheme

Simple Type use only text based elements. It has some pre-defined simple types are:


Complex type

It is used to hold multiple attributes and elements. It contains additional sub elements and can be left empty.


Pin It on Pinterest

Share This