xml/schema/projects/tunnelbroker.xsd

34 lines
1.5 KiB
XML
Raw Normal View History

2020-05-14 03:40:34 -04:00
<?xml version="1.0" encoding="UTF-8" ?>
<xs:schema targetNamespace="https://tunnelbroker.net/tunnelInfo.php"
xmlns="https://tunnelbroker.net/tunnelInfo.php"
xmlns:tunnels="https://tunnelbroker.net/tunnelInfo.php"
2020-05-14 03:40:34 -04:00
xmlns:xs="http://www.w3.org/2001/XMLSchema"
elementFormDefault="qualified"
attributeFormDefault="unqualified">
<xs:include schemaLocation="../lib/types/net.xsd"/>
<!-- ROOT -->
2020-05-14 03:40:34 -04:00
<xs:element name="tunnels">
<xs:complexType>
<xs:sequence>
<xs:element name="tunnel" minOccurs="1" maxOccurs="5">
<xs:complexType>
<xs:all minOccurs="1" maxOccurs="1">
<xs:element name="description" type="xs:string" minOccurs="1" maxOccurs="1"/>
<xs:element name="serverv4" type="t_net_addr_ip4" minOccurs="1" maxOccurs="1"/>
<xs:element name="clientv4" type="t_net_addr_ip4" minOccurs="1" maxOccurs="1"/>
<xs:element name="serverv6" type="t_net_addr_ip6" minOccurs="1" maxOccurs="1"/>
<xs:element name="clientv6" type="t_net_addr_ip6" minOccurs="1" maxOccurs="1"/>
<xs:element name="routed64" type="t_net_qualified_addr_ip6" minOccurs="1" maxOccurs="1"/>
<xs:element name="routed48" type="t_net_qualified_addr_ip6" minOccurs="0" maxOccurs="1"/>
</xs:all>
<xs:attribute name="id" type="xs:positiveInteger" use="required"/>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>