Skip to content

Instantly share code, notes, and snippets.

@lsoica
Created December 28, 2019 17:32
Show Gist options
  • Save lsoica/3c09f2e58d8ed99c0fe7e06ca37e6e96 to your computer and use it in GitHub Desktop.
Save lsoica/3c09f2e58d8ed99c0fe7e06ca37e6e96 to your computer and use it in GitHub Desktop.
<schema
xmlns='http://www.w3.org/2000/10/XMLSchema'
targetNamespace='http://www.w3.org/namespace/'
xmlns:t='http://www.w3.org/namespace/'>
<element name='OPS_envelope'>
<complexType>
<sequence>
<element ref='t:header'/>
<element ref='t:body'/>
</sequence>
</complexType>
</element>
<element name='header'>
<complexType>
<sequence>
<element ref='t:version'/>
<element ref='t:msg_id'/>
<element ref='t:msg_type'/>
</sequence>
</complexType>
</element>
<element name='body'>
<complexType>
<sequence>
<element ref='t:data_block'/>
</sequence>
</complexType>
</element>
<element name='data_block'>
<complexType>
<choice>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
</choice>
</complexType>
</element>
<element name='dt_assoc'>
<complexType>
<choice>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
<sequence minOccurs='0' maxOccurs='unbounded'>
<element ref='t:item'/>
</sequence>
</choice>
</complexType>
</element>
<element name='dt_array'>
<complexType>
<choice>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
<sequence minOccurs='0' maxOccurs='unbounded'>
<element ref='t:item'/>
</sequence>
</choice>
</complexType>
</element>
<element name='dt_scalar'>
<complexType mixed='true'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
</choice>
</complexType>
</element>
<element name='dt_scalarref'>
<complexType mixed='true'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
</choice>
</complexType>
</element>
<element name='item'>
<complexType mixed='true'>
<choice minOccurs='0' maxOccurs='unbounded'>
<element ref='t:dt_assoc'/>
<element ref='t:dt_array'/>
<element ref='t:dt_scalar'/>
<element ref='t:dt_scalarref'/>
</choice>
<attribute name='key' type='string' use='required'/>
<attribute name='class' type='string' use='optional'/>
</complexType>
</element>
<element name='msg_id'>
<complexType mixed='true'>
</complexType>
</element>
<element name='msg_type'>
<complexType mixed='true'>
</complexType>
</element>
<element name='version'>
<complexType mixed='true'>
</complexType>
</element>
</schema>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment