keymasterviriya1150

Untitled

Feb 15th, 2016
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
MXML 1.50 KB | None | 0 0
  1. <?xml version="1.0" encoding="utf-8"?>
  2. <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  3.   <xs:element name="response">
  4.     <xs:complexType>
  5.       <xs:element name="driverProfile">
  6.         <xs:complexType>
  7.           <xs:sequence>
  8.             <xs:element name="name" type="xs:string"/>
  9.             <xs:element name="picture" type="xs:string"/>
  10.             <xs:element name="age" type="xs:positiveInteger"/>
  11.             <xs:element name="sex"/>
  12.             <xs:simpleType>
  13.               <xs:restriction base="xs:string">
  14.                 <xs:enumration value="male"/>
  15.                 <xs:enumration value="female"/>
  16.               </xs:restriction>
  17.             </xs:simpleType>
  18.           </xs:sequence>
  19.         </xs:complexType>
  20.        
  21.       </xs:element>
  22.       <xs:element name="vehicDetail">
  23.         <xs:complexType>
  24.           <xs:element name="vehicleType" type="xs:string"/>
  25.           <xs:element name="vehiclePicture" type="xs:string"/>
  26.           <xs:element name="vehicleSeatNo" type="xs:positiveInteger"/>
  27.          
  28.          
  29.         </xs:complexType>
  30.       </xs:element>
  31.       <xs:element name="CurrentDriverPosition">
  32.         <xs:ComplexType>
  33.           <xs:attribute name="latitude" use="required" />
  34.           <xs:attribute name="longtitude" use="required"/>
  35.         </xs:ComplexType>
  36.       </xs:element>
  37.       <xs:element name="waitingTime" type ="xs:float"/>
  38.       <xs:element name="costEstimate" type="xs:float"/>
  39.     </xs:complexType>
  40.    
  41.   </xs:element>
  42. </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment