This repository has been archived on 2021-12-05. You can view files and clone it, but cannot push or open issues or pull requests.
envoy/src/main/resources/message_schema.xsd
2019-09-28 14:20:25 +02:00

34 lines
922 B
XML

<?xml version="1.0"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:element name="Message" type="Message"/>
<xs:complexType name="Message">
<xs:sequence>
<xs:element name="MetaData" type="MetaData" />
<xs:element name="Content" type="Content"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
<xs:complexType name="Content">
<xs:sequence>
<xs:any />
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
</xs:complexType>
<!-- Sender ID to be able to reply (maybe not necessary because we already
have Sender ID -->
<xs:complexType name="MetaData">
<xs:sequence>
<xs:element name="Sender" type="xs:string" />
<xs:element name="Recipient" type="xs:string" />
<xs:element name="Time" type="xs:time" />
<xs:element name="Date" type="xs:date" />
<xs:element name="State" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:schema>