The xml schema may be used in case the user wants to have the following requirements:
- The xml schema can be used when the user requires the information to be included in the document is correct and in a consistent format.
- It can be used when the user has to create a large set of xml documents with all the documents following a common structure.
- When the document structure is to be shared with other users if an application is built and it follows a particular file structure.
- Schema in xml are particularly helpful if the xml documents are going to contain a large amount of data. The schema gives the user the flexibility to define the structure according to his requirements.