move the xml excercise into a separate folder
This commit is contained in:
parent
b6c6608ebc
commit
3a08e11bcc
|
@ -1,8 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<note xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="aufgabe6.xsd">
|
||||
<to>Me</to>
|
||||
<from>You</from>
|
||||
<heading>Reminder</heading>
|
||||
<body>Don't forget to solve this</body>
|
||||
</note>
|
|
@ -1,13 +0,0 @@
|
|||
<?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>
|
|
@ -1,10 +0,0 @@
|
|||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<employee xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:noNamespaceSchemaLocation="aufgabe6b.xsd">
|
||||
<empNumber>1234</empNumber>
|
||||
<firstName>Max</firstName>
|
||||
<lastName>Muster</lastName>
|
||||
<dateOfBirth>1010-08-30</dateOfBirth>
|
||||
<department>Marketing</department>
|
||||
<salary>50000</salary>
|
||||
</employee>
|
|
@ -1,14 +0,0 @@
|
|||
<?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>
|
|
@ -1,25 +0,0 @@
|
|||
<!ELEMENT collection (description,recipe*)>
|
||||
|
||||
<!ELEMENT description ANY>
|
||||
|
||||
<!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
|
||||
|
||||
<!ELEMENT title (#PCDATA)>
|
||||
|
||||
<!ELEMENT ingredient EMPTY>
|
||||
<!ATTLIST ingredient name CDATA #REQUIRED
|
||||
amount CDATA #IMPLIED
|
||||
unit CDATA #IMPLIED>
|
||||
|
||||
<!ELEMENT preparation (step*)>
|
||||
|
||||
<!ELEMENT step (#PCDATA)>
|
||||
|
||||
<!ELEMENT comment (#PCDATA)>
|
||||
|
||||
<!ELEMENT nutrition EMPTY>
|
||||
<!ATTLIST nutrition protein CDATA #REQUIRED
|
||||
carbohydrates CDATA #REQUIRED
|
||||
fat CDATA #REQUIRED
|
||||
calories CDATA #REQUIRED
|
||||
alcohol CDATA #IMPLIED>
|
|
@ -1,17 +0,0 @@
|
|||
<?xml version="1.0"?>
|
||||
<!DOCTYPE collection SYSTEM 'recipes.dtd'>
|
||||
<collection>
|
||||
<description>Dies ist ein Rezept für etwas zu bauen.</description>
|
||||
<recipe>
|
||||
<title>Brot</title>
|
||||
<ingredient name="wasser" amount="2" unit="liter"/>
|
||||
<ingredient name="mehl" amount="2" unit="kg"/>
|
||||
<preparation>
|
||||
<step>rühren</step>
|
||||
<step>knetten</step>
|
||||
<step>backen</step>
|
||||
</preparation>
|
||||
<comment>Dies ist ein Kommentar</comment>
|
||||
<nutrition protein="2" carbohydrates="4" fat="7" calories="2000" alcohol="40"/>
|
||||
</recipe>
|
||||
</collection>
|
|
@ -1,25 +1,25 @@
|
|||
<!ELEMENT collection (description,recipe*)>
|
||||
|
||||
<!ELEMENT description ANY>
|
||||
|
||||
<!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
|
||||
|
||||
<!ELEMENT title (#PCDATA)>
|
||||
|
||||
<!ELEMENT ingredient EMPTY>
|
||||
<!ATTLIST ingredient name CDATA #REQUIRED
|
||||
amount CDATA #IMPLIED
|
||||
unit CDATA #IMPLIED>
|
||||
|
||||
<!ELEMENT preparation (step*)>
|
||||
|
||||
<!ELEMENT step (#PCDATA)>
|
||||
|
||||
<!ELEMENT comment (#PCDATA)>
|
||||
|
||||
<!ELEMENT nutrition EMPTY>
|
||||
<!ATTLIST nutrition protein CDATA #REQUIRED
|
||||
carbohydrates CDATA #REQUIRED
|
||||
fat CDATA #REQUIRED
|
||||
calories CDATA #REQUIRED
|
||||
alcohol CDATA #IMPLIED>
|
||||
<!ELEMENT collection (description,recipe*)>
|
||||
|
||||
<!ELEMENT description ANY>
|
||||
|
||||
<!ELEMENT recipe (title,ingredient*,preparation,comment?,nutrition)>
|
||||
|
||||
<!ELEMENT title (#PCDATA)>
|
||||
|
||||
<!ELEMENT ingredient EMPTY>
|
||||
<!ATTLIST ingredient name CDATA #REQUIRED
|
||||
amount CDATA #IMPLIED
|
||||
unit CDATA #IMPLIED>
|
||||
|
||||
<!ELEMENT preparation (step*)>
|
||||
|
||||
<!ELEMENT step (#PCDATA)>
|
||||
|
||||
<!ELEMENT comment (#PCDATA)>
|
||||
|
||||
<!ELEMENT nutrition EMPTY>
|
||||
<!ATTLIST nutrition protein CDATA #REQUIRED
|
||||
carbohydrates CDATA #REQUIRED
|
||||
fat CDATA #REQUIRED
|
||||
calories CDATA #REQUIRED
|
||||
alcohol CDATA #IMPLIED>
|
Reference in New Issue