add files for exercise 6

This commit is contained in:
Andreas Zweili 2017-05-09 19:32:39 +02:00
parent e04c8669f6
commit 9f85e62ef7
2 changed files with 21 additions and 0 deletions

8
web/2_sem/aufgabe6.xml Normal file
View File

@ -0,0 +1,8 @@
<?xml version="1.0" encoding="UTF-8"?>
<note xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsd:noNamespaceSchemaLocation="aufgabe6.xsd">
<to>Me</to>
<from>You</from>
<heading>Reminder</heading>
<body>Don't forget to solve this</body>
</note>

13
web/2_sem/aufgabe6.xsd Normal file
View File

@ -0,0 +1,13 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="note">
<xsd:complexType>
<xsd:sequence>
<xsd:element name="to" type="xsd:string"/>
<xsd:element name="from" type="xsd:string"/>
<xsd:element name="heading" type="xsd:string"/>
<xsd:element name="body" type="xsd:string"/>
</xsd:sequence>
</xsd:complexType>
</xsd:element>
</xsd:schema>