monitor repair

camcorder repair

free repair newsletter

XML

<?xml version="1.0" encoding="UTF-8"?>
<!-- edited with XMLSPY v5 rel. 2 U (http://www.xmlspy.com) by skm (skm) -->
<Jobs xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="D:\Programming\XML\UGP2\3\jobs.xsd">
<Job>
<JobId>J007</JobId>
<Description>COMPUTER</Description>
<EduQual>Graduate</EduQual>
<Address>SHERE PUNJAB</Address>
<Phone>2868956</Phone>
<JobType>Permanent</JobType>
</Job>
</Jobs>
 

XSD

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Jobs" type="jbs"/>
<xs:complexType name="jbs">
<xs:sequence>
<xs:element name="Job" type="jb"/>
</xs:sequence>
</xs:complexType>
<xs:complexType name="jb">
<xs:sequence>
<xs:element name="JobId" type="jid"/>
<xs:element name="Description" type="xs:string"/>
<xs:element name="EduQual" type="edt"/>
<xs:group ref="cont"/>
<xs:element name="JobType" type="jbtp"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="jid">
<xs:restriction base="xs:string">
<xs:pattern value="[J]\d{3}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="jbtp">
<xs:restriction base="xs:string">
<xs:pattern value="Part-Time{1}|Contract{1}|Permanent{1}"/>
</xs:restriction>
</xs:simpleType>
<xs:simpleType name="edt">
<xs:restriction base="xs:string">
<xs:pattern value="Graduate{1}|PostGraduate{1}|UnderGraduate{1}"/>
</xs:restriction>
</xs:simpleType>
<xs:group name="cont">
<xs:sequence>
<xs:element name="Address" type="xs:string"/>
<xs:element name="Phone" type="xs:string"/>
</xs:sequence>
</xs:group>
</xs:schema>