XML verstehen – das vielseitige Markup-Datenformat

tiny-tool.de

tiny-tool.de

XML (Extensible Markup Language) ist ein universelles Datenformat, das in der modernen IT-Welt weiterhin eine wichtige Rolle spielt. Als strukturierter, menschen- und maschinenlesbarer Standard wird es unter anderem in Webservices, Office-Dokumenten, APIs, Konfigurationsdateien und Vektorgrafiken eingesetzt.

Grundlagen von XML

XML wurde vom World Wide Web Consortium (W3C) entwickelt, um strukturierte Daten plattformunabhängig zu speichern und zu übertragen. XML trennt strikt Inhalt und Darstellung und eignet sich ideal für den Datenaustausch zwischen verschiedenen Systemen.

Im Gegensatz zu binären Formaten ermöglicht XML eine nachvollziehbare Beschreibung von Inhalten, die auch ohne spezielle Tools lesbar bleibt. XML ist sowohl in Entwicklungsumgebungen als auch direkt im Texteditor einfach zu analysieren oder anzupassen.

Aufbau und Struktur

Ein XML-Dokument beginnt stets mit einer Deklaration, welche die Version und Kodierung angibt. Danach folgt eine hierarchische Baumstruktur aus Elementen. Jedes Element besitzt Start- und End-Tags und kann wiederum verschachtelte Elemente, Textinhalte und Attribute enthalten.

Werbung/Advertising

<

Apple iPad 7 Tablet 10,2 Zoll Retina Multi-Touch 128GB SSD Wi-Fi + Cellular Space Grau

Apple iPad 7 Tablet 10,2 Zoll Retina Multi-Touch 128GB SSD Wi-Fi + Cellular Space Grau

Preis: 259,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 749,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam - Neugerät

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam - Neugerät

Preis: 269,00 EUR

Zum Angebot

Eizo FlexScan EV2436WFS-GY Lichtgrau 24 Zoll WUXGA 1920x1200 DisplayPort DVI VGA

Eizo FlexScan EV2436WFS-GY Lichtgrau 24 Zoll WUXGA 1920x1200 DisplayPort DVI VGA

Preis: 139,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T1200

HP ZBook Fury 15 G8 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T1200

Preis: 759,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision P27h-10 schwarz 27 Zoll WQHD 2560x1440 HDMI DisplayPort USB Höhenverstellbar 61AFGAT1EU

Lenovo ThinkVision P27h-10 schwarz 27 Zoll WQHD 2560x1440 HDMI DisplayPort USB Höhenverstellbar 61AFGAT1EU

Preis: 219,00 EUR

Zum Angebot

Microsoft 365 Business Standard Office - 1 Nutzer

Microsoft 365 Business Standard Office - 1 Nutzer

Preis: 129,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P14s Gen 2 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

Lenovo ThinkPad P14s Gen 2 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 16GB Windows 11 Pro Fingerprint

Preis: 729,00 EUR

Zum Angebot

Fujitsu Esprimo Q556 Intel Core i3 128GB SSD 4GB Windows 10 Home DVD Brenner

Fujitsu Esprimo Q556 Intel Core i3 128GB SSD 4GB Windows 10 Home DVD Brenner

Preis: 199,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T2000

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro Nvidia Quadro T2000

Preis: 879,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P720 2x Intel Xeon Gold 5122 1TB SSD 64GB Windows 11 Pro Nvidia Quadro P4000 inkl. W-Lan

Lenovo ThinkStation P720 2x Intel Xeon Gold 5122 1TB SSD 64GB Windows 11 Pro Nvidia Quadro P4000 inkl. W-Lan

Preis: 899,00 EUR

Zum Angebot

Apple iPhone SE (2022) 64GB Dual-SIM Mitternacht MMXF3ZD/A

Apple iPhone SE (2022) 64GB Dual-SIM Mitternacht MMXF3ZD/A

Preis: 279,00 EUR

Zum Angebot

Philips V-Line 243V7QDSB 24 Zoll Full HD 1920x1080 IPS VGA DVI HDMI Schwarz NEU & OVP

Philips V-Line 243V7QDSB 24 Zoll Full HD 1920x1080 IPS VGA DVI HDMI Schwarz NEU & OVP

Preis: 139,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P53 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Lenovo ThinkPad P53 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 799,00 EUR

Zum Angebot

Fujitsu Esprimo P757 E85+ Intel Quad Core i5 512GB SSD 16GB Windows 10 Pro DVD Brenner

Fujitsu Esprimo P757 E85+ Intel Quad Core i5 512GB SSD 16GB Windows 10 Pro DVD Brenner

Preis: 269,00 EUR

Zum Angebot

Apple iPhone XR Smartphone Handy 6,1 Zoll 256GB Speicher Schwarz

Apple iPhone XR Smartphone Handy 6,1 Zoll 256GB Speicher Schwarz

Preis: 239,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 639,00 EUR

Zum Angebot

Eizo FlexScan EV2736W-BK LED IPS 27 Zoll WQHD 2560x1440 DisplayPort DVI Schwarz

Eizo FlexScan EV2736W-BK LED IPS 27 Zoll WQHD 2560x1440 DisplayPort DVI Schwarz

Preis: 219,00 EUR

Zum Angebot

Apple iPad Air 3 (2019) 10,5 Zoll 256GB Wi-Fi + Cellular Space Grau

Apple iPad Air 3 (2019) 10,5 Zoll 256GB Wi-Fi + Cellular Space Grau

Preis: 329,00 EUR

Zum Angebot

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Pro

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Pro

Preis: 269,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P14s Gen 2 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 24GB Windows 11 Pro Nvidia Quadro

Lenovo ThinkPad P14s Gen 2 14 Zoll 1920x1080 Full HD Intel Core i5 512GB SSD 24GB Windows 11 Pro Nvidia Quadro

Preis: 719,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel

Preis: 129,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6

Preis: 169,00 EUR

Zum Angebot

Fujitsu Esprimo Q957 Intel Core i3 128GB SSD + 500GB HDD 8GB Windows 10 Home

Fujitsu Esprimo Q957 Intel Core i3 128GB SSD + 500GB HDD 8GB Windows 10 Home

Preis: 219,00 EUR

Zum Angebot

Eizo FlexScan EV2456-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Eizo FlexScan EV2456-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Preis: 199,00 EUR

Zum Angebot

Apple iPhone XR Smartphone Handy 6,1 Zoll 64GB Speicher Schwarz

Apple iPhone XR Smartphone Handy 6,1 Zoll 64GB Speicher Schwarz

Preis: 189,00 EUR

Zum Angebot

Apple iPhone 11 Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Apple iPhone 11 Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Preis: 309,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 10 Pro Nvidia Quadro P4000

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 10 Pro Nvidia Quadro P4000

Preis: 699,00 EUR

Zum Angebot

AOC I2475PXQU-GR Pro-line LED grau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

AOC I2475PXQU-GR Pro-line LED grau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI DVI-D VGA USB Höhenverstellbar

Preis: 119,00 EUR

Zum Angebot

Apple iPhone XR Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Apple iPhone XR Smartphone Handy 6,1 Zoll 128GB Speicher Schwarz

Preis: 229,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre M70q Gen 5 Tiny Intel Core i5 256GB SSD 8GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 719,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 10 Pro

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 16GB Windows 10 Pro

Preis: 848,00 EUR

Zum Angebot
🔥 Bestseller

Dell P2419HC schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI USB Höhenverstellbar

Dell P2419HC schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI USB Höhenverstellbar

Preis: 149,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

HP ZBook 15 G6 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 779,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 840 G7 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro LTE

HP EliteBook 840 G7 14 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 10 Pro LTE

Preis: 758,00 EUR

Zum Angebot

Apple iPad 6 Tablet 9,7 Zoll Retina Multi-Touch 32GB SSD Wi-Fi + Cellular Space Grau

Apple iPad 6 Tablet 9,7 Zoll Retina Multi-Touch 32GB SSD Wi-Fi + Cellular Space Grau

Preis: 199,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad X1 Yoga Gen 7 14 Zoll Touch Display Intel Core i5 256GB SSD 32GB Windows 10 Pro LTE

Lenovo ThinkPad X1 Yoga Gen 7 14 Zoll Touch Display Intel Core i5 256GB SSD 32GB Windows 10 Pro LTE

Preis: 869,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision T24d-10 schwarz 24 Zoll WUXGA 1920x1200 HDMI DisplayPort VGA Höhenverstellbar

Lenovo ThinkVision T24d-10 schwarz 24 Zoll WUXGA 1920x1200 HDMI DisplayPort VGA Höhenverstellbar

Preis: 159,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 512GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 512GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 679,00 EUR

Zum Angebot

LG 24BK550Y-B 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar Schwarz

LG 24BK550Y-B 24 Zoll Full HD 1920x1080 VGA DVI DisplayPort HDMI Höhenverstellbar Schwarz

Preis: 129,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad X1 Yoga Gen 7 14 Zoll Touch Display Intel Core i5 256GB SSD 32GB Windows 11 Pro LTE

Lenovo ThinkPad X1 Yoga Gen 7 14 Zoll Touch Display Intel Core i5 256GB SSD 32GB Windows 11 Pro LTE

Preis: 859,00 EUR

Zum Angebot
🔥 Bestseller

Acer B246HYLBymiprx dunkelgrau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI VGA Höhenverstellbar UM.QB6EE.A05

Acer B246HYLBymiprx dunkelgrau 23,8 Zoll Full HD 1920x1080 DisplayPort HDMI VGA Höhenverstellbar UM.QB6EE.A05

Preis: 119,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad L15 Gen 3 15,6 Zoll 1920x1080 Full HD AMD Ryzen 5 PRO 512GB SSD 16GB Windows 11 Pro Fingerprint

Lenovo ThinkPad L15 Gen 3 15,6 Zoll 1920x1080 Full HD AMD Ryzen 5 PRO 512GB SSD 16GB Windows 11 Pro Fingerprint

Preis: 709,00 EUR

Zum Angebot

Eizo FlexScan EV2436W-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI Höhenverstellbar

Eizo FlexScan EV2436W-BK schwarz 24 Zoll WUXGA 1920x1200 DisplayPort DVI Höhenverstellbar

Preis: 129,00 EUR

Zum Angebot

Apple iPhone X Smartphone Handy 5,8 Zoll 256GB Speicher Space Grau

Apple iPhone X Smartphone Handy 5,8 Zoll 256GB Speicher Space Grau

Preis: 339,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P330 Tower Gen 2 Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro RTX 4000

Lenovo ThinkStation P330 Tower Gen 2 Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro RTX 4000

Preis: 899,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook x360 830 G8 13,3 Zoll Touch Display Intel Core i5 256GB SSD 16GB Windows 10 Pro Webcam

HP EliteBook x360 830 G8 13,3 Zoll Touch Display Intel Core i5 256GB SSD 16GB Windows 10 Pro Webcam

Preis: 629,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6EU

Lenovo ThinkVision T24v-10 schwarz 23,8 Zoll Full HD 1920x1080 HDMI DisplayPort VGA Höhenverstellbar 61BCMAR6EU

Preis: 149,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro

Preis: 699,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P520 Intel Xeon W-2135 1TB SSD 64GB Windows 11 Pro Nvidia Geforce RTX 2080

Lenovo ThinkStation P520 Intel Xeon W-2135 1TB SSD 64GB Windows 11 Pro Nvidia Geforce RTX 2080

Preis: 919,00 EUR

Zum Angebot

Fujitsu Esprimo D756 E85+ Intel Pentium G4400 256GB SSD 4GB Windows 10 Pro DVD Brenner

Fujitsu Esprimo D756 E85+ Intel Pentium G4400 256GB SSD 4GB Windows 10 Pro DVD Brenner

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 840 G6 14 Zoll 3840x2160 4K UHD Intel Core i7 1TB SSD 16GB Windows 11 Pro Webcam

HP EliteBook 840 G6 14 Zoll 3840x2160 4K UHD Intel Core i7 1TB SSD 16GB Windows 11 Pro Webcam

Preis: 699,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Firefly 14 G9 14 Zoll 1920x1200 WUXGA Intel Core i7 512GB SSD 16GB Windows 10 Pro Fingerprint

HP ZBook Firefly 14 G9 14 Zoll 1920x1200 WUXGA Intel Core i7 512GB SSD 16GB Windows 10 Pro Fingerprint

Preis: 679,00 EUR

Zum Angebot

Fujitsu Esprimo P757 E85+ Intel Quad Core i5 512GB SSD 16GB Windows 10 Home DVD Brenner

Fujitsu Esprimo P757 E85+ Intel Quad Core i5 512GB SSD 16GB Windows 10 Home DVD Brenner

Preis: 249,00 EUR

Zum Angebot
🔥 Bestseller

Dell Optiplex 7060 Micro Intel Core i5-8500 256GB SSD 16GB Windows 11 Pro

Dell Optiplex 7060 Micro Intel Core i5-8500 256GB SSD 16GB Windows 11 Pro

Preis: 349,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Lenovo Thinkpad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Preis: 119,00 EUR

Zum Angebot

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Home

Fujitsu Esprimo D956 E85+ Desktop Intel Quad Core i5 256GB SSD 8GB Windows 10 Home

Preis: 219,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T2000

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T2000

Preis: 879,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Lenovo ThinkCentre neo 50q Gen 4 Intel Core i5-13420H 256GB SSD 16GB Windows 11 Pro inkl. W-Lan - Neugerät

Preis: 659,00 EUR

Zum Angebot

Fujitsu Celsius M740 Intel Xeon Quad Core E5 v4 512GB SSD 32GB Windows 10 Pro Nvidia Quadro

Fujitsu Celsius M740 Intel Xeon Quad Core E5 v4 512GB SSD 32GB Windows 10 Pro Nvidia Quadro

Preis: 719,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

Lenovo ThinkPad P15 Gen 1 15,6 Zoll Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

Preis: 859,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Lenovo ThinkPad Thunderbolt 3 Dock 40AC Dockingstation inkl. 135 Watt Netzteil inkl. USB-C Kabel 40AC0135EU

Preis: 119,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam

Lenovo ThinkCentre Tiny-in-One 24 Gen 4 schwarz 23,8 Zoll Full HD 1920x1080 DisplayPort inkl. Webcam

Preis: 188,00 EUR

Zum Angebot

Apple iPhone X Smartphone Handy 5,8 Zoll 64GB Speicher Space Grau

Apple iPhone X Smartphone Handy 5,8 Zoll 64GB Speicher Space Grau

Preis: 229,00 EUR

Zum Angebot

MSA-1 Monitorschwenkarm High Quality, Aluminium silbergrau, inkl. Tischbefestigung

MSA-1 Monitorschwenkarm High Quality, Aluminium silbergrau, inkl. Tischbefestigung

Preis: 169,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 11 Pro Nvidia Quadro P4000

Lenovo ThinkStation P520c Intel Xeon W-2133 512GB SSD 32GB Windows 11 Pro Nvidia Quadro P4000

Preis: 699,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad USB-C Dock Gen 2 40AS Dockingstation inkl. 90 Watt Netzteil 40AS0090EU 03X7609

Lenovo ThinkPad USB-C Dock Gen 2 40AS Dockingstation inkl. 90 Watt Netzteil 40AS0090EU 03X7609

Preis: 109,00 EUR

Zum Angebot
🔥 Bestseller

HP EliteBook 840 G8 14 Zoll 1920x1080 Full HD Intel Core i5 256GB SSD 16GB Windows 10 Pro - Neugerät

HP EliteBook 840 G8 14 Zoll 1920x1080 Full HD Intel Core i5 256GB SSD 16GB Windows 10 Pro - Neugerät

Preis: 668,00 EUR

Zum Angebot

Fujitsu Esprimo P5010n Intel Core i5-10400 256GB SSD 16GB Windows 11 Pro

Fujitsu Esprimo P5010n Intel Core i5-10400 256GB SSD 16GB Windows 11 Pro

Preis: 419,00 EUR

Zum Angebot
🔥 Bestseller

Lenovo ThinkPad L14 Gen 3 14 Zoll Touch Display AMD Ryzen 7 PRO 512GB SSD 16GB Windows 11 Pro Webcam

Lenovo ThinkPad L14 Gen 3 14 Zoll Touch Display AMD Ryzen 7 PRO 512GB SSD 16GB Windows 11 Pro Webcam

Preis: 709,00 EUR

Zum Angebot

Fujitsu Display B22-8 WE Neo 22 Zoll HD+ 1680x1050 DisplayPort DVI-D VGA Höhenverstellbar NEU & OVP

Fujitsu Display B22-8 WE Neo 22 Zoll HD+ 1680x1050 DisplayPort DVI-D VGA Höhenverstellbar NEU & OVP

Preis: 139,00 EUR

Zum Angebot
🔥 Bestseller

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

HP ZBook Fury 15 G7 15,6 Zoll 1920x1080 Full HD Intel Core i7 512GB SSD 32GB Windows 11 Pro Nvidia Quadro T1000

Preis: 879,00 EUR

Zum Angebot
>

Einfaches XML-Beispiel

<?xml version="1.0" encoding="UTF-8"?>
<buecher>
  <buch>
    <titel>Die Kunst der XML</titel>
    <autor>Max Mustermann</autor>
    <veroeffentlichungsjahr>2023</veroeffentlichungsjahr>
  </buch>
</buecher>

In diesem Beispiel beschreibt das Element buch ein Buch mit Titel, Autor und Erscheinungsjahr. Diese Struktur zeigt, wie XML Informationen in einer klaren, lesbaren Form darstellt.

Verschachtelung von Elementen

<?xml version="1.0" encoding="UTF-8"?>
<bibliothek>
  <buecher>
    <buch>
      <titel>XML Grundlagen</titel>
      <autor>Max Mustermann</autor>
      <veroeffentlichungsjahr>2023</veroeffentlichungsjahr>
    </buch>
    <buch>
      <titel>Fortgeschrittenes XML</titel>
      <autor>Erika Musterfrau</autor>
      <veroeffentlichungsjahr>2025</veroeffentlichungsjahr>
    </buch>
  </buecher>
</bibliothek>

Hier sind mehrere buch-Elemente in einem gemeinsamen buecher-Element verschachtelt, welches wiederum in bibliothek eingebettet ist. Dies verdeutlicht die Fähigkeit von XML, komplexe Datenstrukturen abzubilden.

Verwendung von Attributen

<?xml version="1.0" encoding="UTF-8"?>
<buecher>
  <buch format="eBook" sprache="de">
    <titel>XML leicht gemacht</titel>
    <autor>Lena Beispiel</autor>
    <veroeffentlichungsjahr>2024</veroeffentlichungsjahr>
  </buch>
  <buch format="Hardcover" sprache="en">
    <titel>Mastering XML</titel>
    <autor>John Doe</autor>
    <veroeffentlichungsjahr>2022</veroeffentlichungsjahr>
  </buch>
</buecher>

Attribute wie format und sprache bieten eine kompakte Möglichkeit, zusätzliche semantische Informationen direkt im Element-Tag zu speichern.

XML in Konfigurationsdateien

<?xml version="1.0" encoding="UTF-8"?>
<databaseConfig>
  <host>localhost</host>
  <port>5432</port>
  <username>admin</username>
  <password>geheim</password>
</databaseConfig>

XML ist besonders geeignet, um Konfigurationen für Anwendungen (z. B. Java EE, Spring, Android) zu speichern, da es eine klare Trennung zwischen Code und Einstellungen erlaubt.

Namespaces in XML

<?xml version="1.0" encoding="UTF-8"?>
<buch xmlns="http://example.org/books" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://example.org/books book.xsd">
  <titel>XML Advanced</titel>
  <autor>Anna Schmidt</autor>
  <veroeffentlichungsjahr>2025</veroeffentlichungsjahr>
</buch>

Namespaces ermöglichen es, unterschiedliche XML-Vokabulare eindeutig zu identifizieren und Namenskonflikte zu vermeiden, besonders nützlich in Webservices oder komplexen Dokumentformaten wie DOCX.

XML-Schema zur Validierung

<xs:schema xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:element name="buch">
    <xs:complexType>
      <xs:sequence>
        <xs:element name="titel" type="xs:string"/>
        <xs:element name="autor" type="xs:string"/>
        <xs:element name="veroeffentlichungsjahr" type="xs:gYear"/>
      </xs:sequence>
      <xs:attribute name="format" type="xs:string" use="optional"/>
    </xs:complexType>
  </xs:element>
</xs:schema>

XML-Schemas definieren exakt, welche Elemente und Attribute in einem XML-Dokument zulässig sind, und ermöglichen die automatische Validierung.

Erweiterte XML-Technologien

Zusätzlich zu den Grundfunktionen bieten folgende Technologien weiterführende Möglichkeiten zur Arbeit mit XML:

  • XPath – Abfragesprache zum Navigieren durch XML-Daten
  • XSLT – Transformiert XML-Daten z. B. in HTML
  • XQuery – Komplexe Abfragen über XML-Datenbestände

Fazit

XML bleibt ein bewährter Standard, dessen Stärke insbesondere in der klaren Struktur, Erweiterbarkeit, Validierbarkeit und plattformübergreifenden Nutzbarkeit liegt. Trotz Konkurrenz durch JSON bleibt XML besonders für komplexe und langlebige Datenstrukturen unverzichtbar.

Werbung/Advertising

Aromatico

Weiterführende Ressourcen