System Response
Last modified by Erik Bakker on 2024/03/19 14:17
On this page you will find the information needed to complete the exercise.
Should you have any questions, please contact academy@emagiz.com.
1. XSD
Below, the information for the System Response, needed for the exercise, is provided.
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
<xs:complexType name="Root">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="items" type="items"/>
</xs:sequence>
<xs:attribute name="status" type="xs:string"/>
<xs:attribute name="count" type="xs:int"/>
</xs:complexType>
<xs:complexType name="items">
<xs:sequence>
<xs:element minOccurs="0" name="id" type="nonEmptyString"/>
<xs:element minOccurs="0" name="title" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Root" type="Root"/>
</xs:schema>
<xs:complexType name="Root">
<xs:sequence>
<xs:element maxOccurs="unbounded" name="items" type="items"/>
</xs:sequence>
<xs:attribute name="status" type="xs:string"/>
<xs:attribute name="count" type="xs:int"/>
</xs:complexType>
<xs:complexType name="items">
<xs:sequence>
<xs:element minOccurs="0" name="id" type="nonEmptyString"/>
<xs:element minOccurs="0" name="title" type="nonEmptyString"/>
</xs:sequence>
</xs:complexType>
<xs:simpleType name="nonEmptyString">
<xs:restriction base="xs:string">
<xs:minLength value="1"/>
</xs:restriction>
</xs:simpleType>
<xs:element name="Root" type="Root"/>
</xs:schema>