Expanded message_schema.xsd to support message lists

This commit is contained in:
Kai S. K. Engelbart 2019-10-05 15:05:41 +02:00
parent 5254a83e8c
commit 1e18b5b2b1

View File

@ -4,29 +4,36 @@
xmlns="https://github.com/informatik-ag-ngl"
elementFormDefault="qualified">
<xs:element name="Message">
<xs:element name="Messages">
<xs:complexType>
<xs:sequence>
<xs:element name="MetaData">
<xs:complexType>
<xs:sequence>
<xs:element name="Sender" type="xs:string" />
<xs:element name="Recipient" type="xs:string" />
<xs:element name="Date" type="xs:date" />
<xs:element name="State" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Content" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="text" type="xs:string"/>
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
</xs:complexType>
</xs:element>
<xs:element name="Message" type="Message" minOccurs="0"
maxOccurs="unbounded" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:complexType name="Message">
<xs:sequence>
<xs:element name="MetaData">
<xs:complexType>
<xs:sequence>
<xs:element name="Sender" type="xs:string" />
<xs:element name="Recipient" type="xs:string" />
<xs:element name="Date" type="xs:date" />
<xs:element name="State" type="xs:boolean" />
</xs:sequence>
</xs:complexType>
</xs:element>
<xs:element name="Content" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="text" type="xs:string" />
</xs:sequence>
<xs:attribute name="type" type="xs:string" />
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:schema>