Login   Register  
PHP Classes
elePHPant
Icontem

File: test.xsd

Recommend this page to a friend!
Stumble It! Stumble It! Bookmark in del.icio.us Bookmark in del.icio.us
  Classes of Andrey Nikishaev  >  XML Tools  >  test.xsd  >  Download  
File: test.xsd
Role: Auxiliary data
Content type: text/plain
Description: XSD Schema
Class: XML Tools
Parse and validate XML documents
Author: By
Last change: Role changed
Date: 2011-11-16 03:15
Size: 896 bytes
 

Contents

Class file image Download
<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified">
<xs:element name="lures">
 <xs:complexType> 
  <xs:sequence>
   <xs:element name="lure" type="luretype"/>
  </xs:sequence>
 </xs:complexType>
</xs:element>

<xs:complexType name="luretype">
   <xs:sequence>
     <xs:element name="lureName" type="xs:string"/>
     <xs:element name="lureCompany" type="xs:string"/>
     <xs:element name="lureQuantity" type="xs:integer"/>
     <xs:element name="lureQuantity2" type="xs:integer"/>
   </xs:sequence>
   <xs:attribute name="id" type="xs:integer"/>
   <xs:attribute name="num" type="less120" use="required"/>
</xs:complexType>

<xs:simpleType name="less120">
  <xs:restriction base="xs:integer">
    <xs:minInclusive value="0"/>
    <xs:maxInclusive value="120"/>
  </xs:restriction>
</xs:simpleType>
</xs:schema>