monitor repair

camcorder repair

free repair newsletter

XML File

<?xml version="1.0" encoding="UTF-8"?>
<BOOKDATA xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<BOOK>
<NAME>Natural Wonders</NAME>
<ISBN>I007</ISBN>
<FNAME>Suresh</FNAME>
<LNAME>Meena</LNAME>
<PRICE>1000</PRICE>
</BOOK>
</BOOKDATA>
 

XSD File

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="BOOKDATA" type="bookdata"/>
<xsd:complexType name="bookdata">
<xsd:sequence>
<xsd:element name="BOOK" type="bookdt"/>
</xsd:sequence>
</xsd:complexType>
<xsd:complexType name="bookdt">
<xsd:sequence>
<xsd:element name="NAME" type="xsd:string"/>
<xsd:element name="ISBN" type="isbndata"/>
<xsd:element name="FNAME" type="xsd:string"/>
<xsd:element name="LNAME" type="xsd:string"/>
<xsd:element name="PRICE" type="xsd:positiveInteger"/>
</xsd:sequence>
</xsd:complexType>
<xsd:simpleType name="isbndata">
<xsd:restriction base="xsd:string">
<xsd:pattern value="[I]\d{3}"/>
</xsd:restriction>
</xsd:simpleType>
</xsd:schema>