kevin5800

XSD

May 27th, 2014
531
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
XML 1.49 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema
  3.    version="xxx"
  4.    id="xxx"
  5.    targetNamespace="http://www.xxx"
  6.    xmlns:xs="http://www.w3.org/2001/XMLSchema"
  7.    xmlns="http://www.xxx"
  8.    elementFormDefault="qualified"
  9. >
  10.   <xs:element name="ValidationOk" type="xs:boolean"/>
  11.   <xs:element name="VersionNumber" type="xs:string"/>
  12.   <xs:element name="CurrentRemoteServerTime" type="xs:dateTime"/>
  13.   <xs:element name="ValidationKey">
  14.     <xs:simpleType>
  15.       <xs:restriction base="xs:string">
  16.         <xs:maxLength value="100"/>
  17.       </xs:restriction>
  18.     </xs:simpleType>
  19.   </xs:element>
  20.   <xs:element name="Licence">
  21.     <xs:simpleType>
  22.       <xs:restriction base="xs:string">
  23.         <xs:maxLength value="100"/>
  24.       </xs:restriction>
  25.     </xs:simpleType>
  26.   </xs:element>
  27.   <xs:element name="CheckVersion">
  28.     <xs:complexType>
  29.       <xs:all>
  30.         <xs:element ref="ValidationKey" minOccurs="0"/>
  31.         <xs:element ref="Licence"/>
  32.       </xs:all>
  33.     </xs:complexType>
  34.   </xs:element>
  35.   <xs:element name="CheckVersionResponse">
  36.     <xs:complexType>
  37.       <xs:sequence>
  38.         <xs:element name="CheckversionResult">
  39.           <xs:complexType>
  40.             <xs:all>
  41.               <xs:element ref="ValidationOk"/>
  42.               <xs:element ref="VersionNumber"/>
  43.               <xs:element ref="CurrentRemoteServerTime"/>
  44.             </xs:all>
  45.           </xs:complexType>
  46.         </xs:element>
  47.       </xs:sequence>
  48.     </xs:complexType>
  49.   </xs:element>
  50. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment