Wiki source code of System Response

Last modified by Erik Bakker on 2024/03/19 14:17

Show last authors
1 {{container}}{{container layoutStyle="columns"}}(((
2 On this page you will find the information needed to complete the exercise.
3
4 Should you have any questions, please contact [[academy@emagiz.com>>mailto:academy@emagiz.com]].
5
6 === 1. XSD ===
7
8 Below, the information for the System Response, needed for the exercise, is provided.
9
10 {{code language="xml"}}<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
11 <xs:complexType name="Root">
12 <xs:sequence>
13 <xs:element maxOccurs="unbounded" name="items" type="items"/>
14 </xs:sequence>
15 <xs:attribute name="status" type="xs:string"/>
16 <xs:attribute name="count" type="xs:int"/>
17 </xs:complexType>
18 <xs:complexType name="items">
19 <xs:sequence>
20 <xs:element minOccurs="0" name="id" type="nonEmptyString"/>
21 <xs:element minOccurs="0" name="title" type="nonEmptyString"/>
22 </xs:sequence>
23 </xs:complexType>
24 <xs:simpleType name="nonEmptyString">
25 <xs:restriction base="xs:string">
26 <xs:minLength value="1"/>
27 </xs:restriction>
28 </xs:simpleType>
29 <xs:element name="Root" type="Root"/>
30 </xs:schema>{{/code}}
31
32 )))((({{toc/}}))){{/container}}{{/container}}