top button
Flag Notify
    Connect to us
      Site Registration

Site Registration

Write the steps involved in the creation of a custom schema.

0 votes
341 views
Write the steps involved in the creation of a custom schema.
posted Jan 2, 2018 by Latha

Share this question
Facebook Share Button Twitter Share Button LinkedIn Share Button

1 Answer

0 votes

The main steps involved in the creation of a schema are as follows:

The creation of an XML prolog and schema element : During this process the user would define the information about the xml document and can contain annotataions for another uer or application to know more about the schema.
Adding namespace : Once the prolog and the schema element is defined the user can define the xmlns attribute to the schema.

For Example:

<?xml version=”1.0” encoding=”UTF-8”?>
<xsd:schema xmlns:xsd=”http://www.abc.org/2001/XMLSchema”>

Addition of all the element and attribute declarations created by the user. A snippet of the declarations is given below:

<xsd:complexType name=”bookType”>
<xsd:sequence>
<xsd:element ref=”title”/>
<xsd:element ref=”author”/>
<xsd:element ref=”publisher”/>
<xsd:element ref=”price”/>
<xsd:element ref=”isbn”/>
</xsd:sequence>

Saving the schema : once the user has entered all the declarations in the file the file can be saved using the .xsd extension.

answer Jan 2, 2018 by Shivaranjini
...