Skip to content

Instantly share code, notes, and snippets.

@mh-github
Last active January 3, 2018 07:33
Show Gist options
  • Select an option

  • Save mh-github/117dbf916b9f593918fc to your computer and use it in GitHub Desktop.

Select an option

Save mh-github/117dbf916b9f593918fc to your computer and use it in GitHub Desktop.
<xs:element name="customer">
<xs:complexType>
<xs:sequence>
<xs:element name="contact">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="name">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="part" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="email" type="xs:string" />
<xs:element name="phone">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="type" type="xs:string" />
<xs:attribute name="time" type="xs:string" />
<xs:attribute name="preferredcontact" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="address">
<xs:complexType>
<xs:sequence>
<xs:element maxOccurs="unbounded" name="street">
<xs:complexType>
<xs:simpleContent>
<xs:extension base="xs:string">
<xs:attribute name="line" type="xs:string" />
</xs:extension>
</xs:simpleContent>
</xs:complexType>
</xs:element>
<xs:element name="city" type="xs:string" />
<xs:element name="regioncode" type="xs:string" />
<xs:element name="postalcode" type="xs:string" />
<xs:element name="country" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="timeframe">
<xs:complexType>
<xs:sequence>
<xs:element name="description" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="comments" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment