Skip to content

Instantly share code, notes, and snippets.

@Gueka
Created August 9, 2019 16:40
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Gueka/d6932cca997d7d93d1b4efcdc5a1b38c to your computer and use it in GitHub Desktop.
Save Gueka/d6932cca997d7d93d1b4efcdc5a1b38c to your computer and use it in GitHub Desktop.
Example of a xsd file
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" xmlns:tns="http://www.gueka.net/promo/schema"
targetNamespace="http://www.gueka.net/promo/schema" elementFormDefault="qualified">
<xs:element name="promotionRequest">
<xs:complexType>
<xs:sequence>
<xs:element name="data" type="tns:data"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="promotionResponse">
<xs:complexType>
<xs:sequence>
<xs:element name="offers" maxOccurs="unbounded" type="xs:string"/>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="data">
<xs:sequence>
<xs:element name="userId" type="xs:string"/>
<xs:element name="name" type="xs:string"/>
<xs:element name="surname" type="xs:string"/>
<xs:element name="initDate" type="xs:dateTime"/>
</xs:sequence>
</xs:complexType>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment