Команда просмотра списка событий Call-центра.

<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema" elementFormDefault="qualified" attributeFormDefault="unqualified">

    <xs:complexType name="JournalList">
        <xs:attribute name="subsystem" type="xs:string" use="required"/>
        <xs:attribute name="event" type="xs:string" use="required"/> <!-- имя события или * -->
        <xs:attribute name="entity" type="xs:string" use="required"/> <!-- имя сущности или *  -->
        <xs:attribute name="before_timestamp" type="xs:string" use="required"/> <!--YY/MM/DD HH:MM:SS-->
        <xs:attribute name="limit" type="xs:positiveInteger" use="required"/> <!-- max 50 -->
    </xs:complexType>

    <xs:complexType name="Event">
        <xs:sequence>
            <xs:element name="properties" minOccurs="0" maxOccurs="1">
                <xs:complexType>
                    <xs:anyAttribute/>
                </xs:complexType>
            </xs:element>
        </xs:sequence>
        <xs:attribute name="subsystem" type="xs:string" use="required"/>
        <xs:attribute name="event" type="xs:string" use="required"/>
        <xs:attribute name="entity" type="xs:string" use="required"/>
        <xs:attribute name="timestamp" type="xs:string" use="required"/> <!--YY/MM/DD HH:MM:SS-->
    </xs:complexType>

    <xs:complexType name="Events">
        <xs:sequence>
            <xs:element name="event" type="Event" minOccurs="0" maxOccurs="unbounded"/>
        </xs:sequence>
    </xs:complexType>

    <!-- in -->
    <xs:element name="in">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="request">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="journal_list" maxOccurs="unbounded" type="JournalList"/>
                        </xs:sequence>
                        <xs:attribute name="domain" type="xs:string"/>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
    <!-- out -->
    <xs:element name="out">
        <xs:complexType>
            <xs:sequence>
                <xs:element name="response">
                    <xs:complexType>
                        <xs:sequence>
                            <xs:element name="events" minOccurs="0" maxOccurs="unbounded" type="Events"/>
                        </xs:sequence>
                    </xs:complexType>
                </xs:element>
            </xs:sequence>
        </xs:complexType>
    </xs:element>
</xs:schema>
XML

Ответ:

200