Skip to content

Instantly share code, notes, and snippets.

@ihordiachenko
Last active October 30, 2025 02:34
Show Gist options
  • Select an option

  • Save ihordiachenko/c26dfd48f6712a2e332010d41dd6a105 to your computer and use it in GitHub Desktop.

Select an option

Save ihordiachenko/c26dfd48f6712a2e332010d41dd6a105 to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="unqualified"
attributeFormDefault="unqualified">
<!-- Root: Hotels -->
<xs:element name="Hotels">
<xs:complexType>
<xs:sequence>
<xs:element name="Hotel" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="Name" type="xs:string"/>
<xs:element name="Phone" type="xs:string" minOccurs="1" maxOccurs="unbounded"/>
<xs:element name="Address">
<xs:complexType>
<xs:sequence>
<xs:element name="Number" type="xs:string"/>
<xs:element name="Street" type="xs:string"/>
<xs:element name="City" type="xs:string"/>
<xs:element name="State" type="xs:string"/>
<xs:element name="Zip" type="xs:string"/>
</xs:sequence>
<xs:attribute name="NearestAirport" type="xs:string" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
<xs:attribute name="Rating" type="xs:string" use="optional"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment