add files for exercise 6b

This commit is contained in:
Andreas Zweili 2017-05-09 19:47:38 +02:00
parent 1340eee6b8
commit 56330b3691
2 changed files with 24 additions and 0 deletions

10
web/2_sem/aufgabe6b.xml Normal file
View File

@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<employee xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xsd:SchemaLocation="aufgabe6b.xsd">
<empNumber>1234</empNumber>
<firstname>Max</firstname>
<lastname>Muster</lastname>
<dateOfBirth>30.08.1010</dateOfBirth>
<department>Marketing</department>
<salary>50000</salary>
</employee>

14
web/2_sem/aufgabe6b.xsd Normal file
View File

@ -0,0 +1,14 @@
<?xml version="1.0" encoding="UTF-8"?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:complexType name="employeeType">
<xsd:sequence>
<xsd:element name="empNumber" type="xsd:string"/>
<xsd:element name="firstName" type="xsd:string" />
<xsd:element name="lastName" type="xsd:string" />
<xsd:element name="dateOfBirth" type="xsd:date" />
<xsd:element name="department" type="xsd:string" />
<xsd:element name="salary" type="xsd:long" />
</xsd:sequence>
</xsd:complexType>
<xsd:element name="employee" type="employeeType" />
</xsd:schema>