Created
August 9, 2019 16:40
-
-
Save Gueka/d6932cca997d7d93d1b4efcdc5a1b38c to your computer and use it in GitHub Desktop.
Example of a xsd file
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<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