Übung XML Book Namespacehttps://www.cmseo.ch/qualified?&atomFri, 29 Mar 2024 10:45:54 +0000stack.ch
https://stack.ch/
849cac0b-edb9-11ee-8c11-005056bb85fbSimtech AG - Ausbildung - XML - Kurs XML Einführung JEXM - Kurs XML Einführung - Ressourcen - Kurs XML Einführung - Übungen - Übung XML Book Namespace
https://www.cmseo.ch/qualified
849cad80-edb9-11ee-8c11-005056bb85fbFri, 29 Mar 2024 10:45:54 +0000Übung XML Book Namespace
https://www.cmseo.ch/qualified
849caf16-edb9-11ee-8c11-005056bb85fbFri, 29 Mar 2024 10:45:54 +0000
https://www.cmseo.ch/qualified
849cb029-edb9-11ee-8c11-005056bb85fbFri, 29 Mar 2024 10:45:54 +0000Wir möchten unser XML Dokument mit einem Namespace versehen. Als Vorlage dient uns das folgenden Book Dokument:<?xml version="1.0" encoding="UTF-8"?>
<document>
<book>
<title>XSLT</title>
<author>Michael Kay</author>
<publisher>Wrox Press Ltd.</publisher>
<isbn>1-861003-12-9</isbn>
</book>
<book>
<title>XML and Java</title>
<author>Hiroshi Maruyama</author>
<author>Kent Tamura</author>
<author>Naohiko Uramoto</author>
<publisher>Addison Wesley</publisher>
<isbn>0201485435</isbn>
</book>
<book>
<title>Java and XML</title>
<author>Brett McLaughlin</author>
<author>Mike Loukides</author>
<publisher>O'Reilly</publisher>
<isbn>0596000162</isbn>
</book>
</document>
https://www.cmseo.ch/qualified
849cb4c5-edb9-11ee-8c11-005056bb85fbFri, 29 Mar 2024 10:45:54 +0000Erstellen Sie im Visual Code Editor das Book Dokument gemäss dem zuvor angegebenen Listing.Definieren Sie einen Namespace gemäss dem folgenden Listing und passen Sie die Element entsprechend an, so dass das Dokument gültig ist. <?xml version="1.0" encoding="UTF-8"?>
<b:document xmlns:b="https://www.simtech-ag.ch/education/xml/jexm">
<b:book>
<b:title>XSLT</b:title>
...
</b:book>
</b:document>Eine mögliche Lösung finden Sie hier.
https://www.cmseo.ch/qualified
849cbbb3-edb9-11ee-8c11-005056bb85fbFri, 29 Mar 2024 10:45:54 +0000Erstellen Sie optional ein XML Schema zum Namespaced Dokument z.B. via Visual Code Generator. Das generrierte XML Schema funktioniert leider nicht ohne manuelle Anpassungen auf beiden Dokumenten:Angepasstes Book XML Schema:<?xml version="1.0" encoding="UTF-8"?>
<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema"
targetNamespace="https://www.simtech-ag.ch/education/xml/jexm"
elementFormDefault="qualified">
<xs:element name="document">
<xs:complexType>
<xs:sequence>
<xs:element name="book" maxOccurs="unbounded">
<xs:complexType>
<xs:sequence>
<xs:element name="title" type="xs:string" />
<xs:element name="author" maxOccurs="unbounded" type="xs:string" />
<xs:element name="publisher" type="xs:string" />
<xs:element name="isbn" type="xs:string" />
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:sequence>
</xs:complexType>
</xs:element>
</xs:schema>Angepasstes XML Dokument:<?xml version="1.0" encoding="UTF-8"?>
<b:document xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="https://www.simtech-ag.ch/education/xml/jexm bookns.xsd"
xmlns:b="https://www.simtech-ag.ch/education/xml/jexm">
<b:book>
<b:title>XSLT</b:title>
<b:author>Michael Kay</b:author>
<b:publisher>Wrox Press Ltd.</b:publisher>
<b:isbn>1-861003-12-9</b:isbn>
</b:book>
<b:book>
<b:title>XML and Java</b:title>
<b:author>Hiroshi Maruyama</b:author>
<b:author>Kent Tamura</b:author>
<b:author>Naohiko Uramoto</b:author>
<b:publisher>Addison Wesley</b:publisher>
<b:isbn>0201485435</b:isbn>
</b:book>
<b:book>
<b:title>Java and XML</b:title>
<b:author>Brett McLaughlin</b:author>
<b:author>Mike Loukides</b:author>
<b:publisher>O'Reilly</b:publisher>
<b:isbn>0596000162</b:isbn>
</b:book>
</b:document>Über uns
https://www.cmseo.ch/about
Fri, 29 Mar 2024 10:45:54 +0000849cc492-edb9-11ee-8c11-005056bb85fbAktuell
https://www.cmseo.ch/
Fri, 29 Mar 2024 10:45:54 +0000849cc540-edb9-11ee-8c11-005056bb85fbAGB
https://www.cmseo.ch/agb
Fri, 29 Mar 2024 10:45:54 +0000849cc5f7-edb9-11ee-8c11-005056bb85fbBildungswege
https://www.cmseo.ch/bildungswege
Fri, 29 Mar 2024 10:45:54 +0000849cc6dc-edb9-11ee-8c11-005056bb85fbBlog
https://www.cmseo.ch/blog
Fri, 29 Mar 2024 10:45:54 +0000849cc785-edb9-11ee-8c11-005056bb85fbRufen Sie mich an
https://www.cmseo.ch/callus
Fri, 29 Mar 2024 10:45:54 +0000849cc8a0-edb9-11ee-8c11-005056bb85fbCharts
https://www.cmseo.ch/charts
Fri, 29 Mar 2024 10:45:54 +0000849cc94c-edb9-11ee-8c11-005056bb85fbConsulting
https://www.cmseo.ch/consulting
Fri, 29 Mar 2024 10:45:54 +0000849cc9f2-edb9-11ee-8c11-005056bb85fbKontakt
https://www.cmseo.ch/contact
Fri, 29 Mar 2024 10:45:54 +0000849cca91-edb9-11ee-8c11-005056bb85fbAusbildung/Kurse
https://www.cmseo.ch/education
Fri, 29 Mar 2024 10:45:54 +0000849ccb2c-edb9-11ee-8c11-005056bb85fbSoftware Engineering
https://www.cmseo.ch/engineering
Fri, 29 Mar 2024 10:45:54 +0000849ccbd0-edb9-11ee-8c11-005056bb85fbFreelancer
https://www.cmseo.ch/freelancer
Fri, 29 Mar 2024 10:45:54 +0000849ccc7c-edb9-11ee-8c11-005056bb85fbImpressum
https://www.cmseo.ch/impressum
Fri, 29 Mar 2024 10:45:54 +0000849ccd19-edb9-11ee-8c11-005056bb85fbKursleiter
https://www.cmseo.ch/kursleiter
Fri, 29 Mar 2024 10:45:54 +0000849ccdb1-edb9-11ee-8c11-005056bb85fbNetzwerk
https://www.cmseo.ch/network
Fri, 29 Mar 2024 10:45:54 +0000849cce48-edb9-11ee-8c11-005056bb85fbReferenzen
https://www.cmseo.ch/references
Fri, 29 Mar 2024 10:45:54 +0000849ccee0-edb9-11ee-8c11-005056bb85fbSitemap
https://www.cmseo.ch/sitemap
Fri, 29 Mar 2024 10:45:54 +0000849ccf86-edb9-11ee-8c11-005056bb85fbTools
https://www.cmseo.ch/tools
Fri, 29 Mar 2024 10:45:54 +0000849cd01e-edb9-11ee-8c11-005056bb85fbVision
https://www.cmseo.ch/vision
Fri, 29 Mar 2024 10:45:54 +0000849cd0c6-edb9-11ee-8c11-005056bb85fb