2

<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="student">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="std1">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:string" name="name"/>
              <xs:element type="xs:byte" name="regno"/>
              <xs:element type="xs:string" name="address"/>
              <xs:element type="xs:short" name="phoneno"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="std2">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:string" name="name"/>
              <xs:element type="xs:byte" name="regno"/>
              <xs:element type="xs:string" name="address"/>
              <xs:element type="xs:int" name="phoneno"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="std3">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:string" name="name"/>
              <xs:element type="xs:byte" name="regno"/>
              <xs:element type="xs:string" name="address"/>
              <xs:element type="xs:int" name="phoneno"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
        <xs:element name="std4">
          <xs:complexType>
            <xs:sequence>
              <xs:element type="xs:string" name="name"/>
              <xs:element type="xs:byte" name="regno"/>
              <xs:element type="xs:string" name="address"/>
              <xs:element type="xs:int" name="phoneno"/>
            </xs:sequence>
          </xs:complexType>
        </xs:element>
      </xs:sequence>
    </xs:complexType>
  </xs:element>
</xs:schema>

Popular posts from this blog

Ads

4a Reading data from Textfile

Execute Basic Numpy operations