Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="utf-8"?>
- <xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
- <xs:element name="response">
- <xs:complexType>
- <xs:element name="driverProfile">
- <xs:complexType>
- <xs:sequence>
- <xs:element name="name" type="xs:string"/>
- <xs:element name="picture" type="xs:string"/>
- <xs:element name="age" type="xs:positiveInteger"/>
- <xs:element name="sex"/>
- <xs:simpleType>
- <xs:restriction base="xs:string">
- <xs:enumration value="male"/>
- <xs:enumration value="female"/>
- </xs:restriction>
- </xs:simpleType>
- </xs:sequence>
- </xs:complexType>
- </xs:element>
- <xs:element name="vehicDetail">
- <xs:complexType>
- <xs:element name="vehicleType" type="xs:string"/>
- <xs:element name="vehiclePicture" type="xs:string"/>
- <xs:element name="vehicleSeatNo" type="xs:positiveInteger"/>
- </xs:complexType>
- </xs:element>
- <xs:element name="CurrentDriverPosition">
- <xs:ComplexType>
- <xs:attribute name="latitude" use="required" />
- <xs:attribute name="longtitude" use="required"/>
- </xs:ComplexType>
- </xs:element>
- <xs:element name="waitingTime" type ="xs:float"/>
- <xs:element name="costEstimate" type="xs:float"/>
- </xs:complexType>
- </xs:element>
- </xs:schema>
Advertisement
Add Comment
Please, Sign In to add comment