XML-Terminologie

Dec 23, 2016 am 11:57 AM
xml


Übersicht:



Einführung

1. Begriffe im Zusammenhang mit XML-Dokumenten

2. Begriffe im Zusammenhang mit DTD



Einführung



Das Schwierigste für Anfänger beim Erlernen von XML ist, dass es viele neue Terminologiekonzepte zu verstehen gibt. Da es sich bei XML selbst um eine brandneue Technologie handelt, entwickelt und verändert sich die Technologie ständig. Organisationen und große Netzwerkunternehmen (Microsoft, IBM, SUN usw.) führen ständig ihre eigenen Erkenntnisse und Standards ein, sodass es nicht verwunderlich ist, dass neue Konzepte entstehen fliegen überall hin. Es gibt in China keine maßgebliche Institution oder Organisation, die diese Begriffe offiziell benennt. Die meisten chinesischen Lehrbücher, die Sie sehen, basieren auf dem eigenen Verständnis des Autors, was die Entwicklung von XML weiter behindert Verständnis und Erlernen dieser Konzepte.




Die Erklärung der XML-Begriffe, die Sie unten sehen, ist auch das eigene Verständnis und die Übersetzung des Autors. Ajie basiert auf der von der W3C-Organisation veröffentlichten XML1.0-Standardspezifikation und der zugehörigen offiziellen Dokumentation. Es kann sichergestellt werden, dass diese Auffassungen grundsätzlich richtig oder zumindest nicht falsch sind. Wenn Sie weiterlesen und verstehen möchten, habe ich am Ende dieses Artikels die Quellen und Links zu relevanten Ressourcen aufgelistet, auf die Sie direkt zugreifen können. Okay, kommen wir zum Thema:


1. Begriffe im Zusammenhang mit XML-Dokumenten

Was ist ein XML-Dokument? Kennen Sie die HTML-Quellcodedatei? Ein XML-Dokument ist eine mit XML-Tags geschriebene XML-Quellcodedatei. XML-Dokumente sind ebenfalls reine ASCII-Textdateien, die Sie mit Notepad erstellen und ändern können. Der Suffixname von XML-Dokumenten ist .XML, zum Beispiel myfile.xml. Sie können die .xml-Datei auch direkt mit Browsern von IE5.0 oder höher öffnen, aber was Sie sehen, ist der „XML-Originalcode“ und der Seiteninhalt wird nicht angezeigt. Sie können versuchen, den folgenden Code als myfile.xml zu speichern:


>
XML Easy Learning Manual

ajie

20010115




Das XML-Dokument besteht aus drei Teilen:

1. Eine XML-Dokumentdeklaration;

Eine Definition des Dokumenttyps

3.


Beispiel:



>



QUICK START OF XML</author> </myfile> <br><br></filelist> Die erste Zeile< ;?xml version="1.0"?> Die zweite Zeile gibt an, dass dieses Dokument filelist.dtd verwendet, um den Dokumenttyp zu definieren. <br>Lassen Sie uns etwas über die relevanten Begriffe in XML-Dokumenten lernen: <br><br><br>1.Element (Element): <br><br>Wir kennen bereits Elemente in HTML und sie bilden HTML-Dokumente. Die kleinste Einheit, das gleiche in XML. Ein Element wird durch ein Tag definiert, einschließlich der Start- und End-Tags und des darin enthaltenen Inhalts, wie folgt: <author>ajie</author> <br><br><br>Der einzige Unterschied ist: In HTML ist das Tag ist festgelegt, während in XML die Kennung von Ihnen erstellt werden muss. <br><br><br>2.Tag (Logo) <br><br>Das Tag wird zur Definition von Elementen verwendet. In XML müssen Tags paarweise die Daten umgebend erscheinen. Der Name des Bezeichners ist derselbe wie der Name des Elements. Zum Beispiel dieses Element: <br><br><author>ajie</author> <br><br>wobei <author> <br><br><br>3.Attribut: <br><br>Was ist ein Attribut? Schauen Sie sich diesen HTML-Code an:<font color="red">word</font>. Unter diesen ist die Farbe eines der Attribute der Schriftart. Das Attribut <br><br> ist eine weitere Beschreibung und Erklärung des Logos. Ein Logo kann mehrere Attribute haben, wie zum Beispiel das Schriftartattribut und die Schriftgröße. Attribute in XML sind dieselben wie Attribute in HTML. Jedes Attribut hat seinen eigenen Namen und Wert. Das Attribut ist Teil des Bezeichners. Zum Beispiel: <br><br><author sex="female">ajie</author> <br><br>Die Attribute in XML werden ebenfalls von Ihnen selbst definiert. Wir empfehlen, dass Sie versuchen, keine Attribute zu verwenden Ändern Sie die Attribute in untergeordnete Elemente. Der obige Code kann beispielsweise wie folgt geändert werden: <br><br><author>ajie <br><br><sex>female</sex> <br></author> <br><br>Der Grund dafür ist, dass Attribute nicht einfach zu erweitern und von Programmen manipuliert werden können. <br><br><br>4.Erklärung (Erklärung) <br><br>In der ersten Zeile aller XML-Dokumente befindet sich eine XML-Deklaration. Diese Deklaration gibt an, dass es sich bei diesem Dokument um ein XML-Dokument handelt und welcher XML-Versionsspezifikation es folgt. Eine XML-Deklarationsanweisung sieht so aus: <br><br><?xml version="1.0"?> <br><br><br>5.DTD (Document Type Definition) <br><br> DTD wird verwendet, um Elemente, Attribute und Beziehungen zwischen Elementen in XML-Dokumenten zu definieren. <br><br>Ob die Struktur des XML-Dokuments korrekt ist, kann anhand der DTD-Datei erkannt werden. Für die Erstellung eines XML-Dokuments ist jedoch nicht unbedingt eine DTD-Datei erforderlich. Detaillierte Beschreibungen der DTD-Dateien werden unten separat aufgeführt. <br><br><br>6. Wohlgeformtes XML (wohlgeformtes XML) <br><br>Ein Dokument, das den XML-Syntaxregeln folgt und sich an XML-Spezifikationen hält, wird als „wohlgeformt“ bezeichnet. Wenn sich Ihr gesamtes Markup strikt an die XML-Spezifikation hält, benötigt Ihr XML-Dokument nicht unbedingt eine DTD-Datei, um es zu definieren. <br><br>Ein wohlgeformtes Dokument muss mit einer XML-Deklaration beginnen, zum Beispiel: <br><br><?xml version="1.0" standalone="yes" binding="UTF-8"?> ; <br/><br/> Darunter müssen Sie die XML-Version angeben, der das Dokument entspricht, die derzeit 1.0 ist. Zweitens müssen Sie erklären, dass das Dokument „unabhängig“ ist und keine DTD-Datei erforderlich ist, um zu überprüfen, ob das Dokument kompatibel ist Der darin enthaltene Bezeichner ist gültig. Drittens müssen Sie die vom Dokument verwendete XML-Version angeben. Der Standardwert ist UTF-8. Wenn Sie Chinesisch verwenden, müssen Sie ihn auf GB2312 einstellen. <br/><br/>Ein wohlgeformtes XML-Dokument muss ein Wurzelelement haben, das das erste Element ist, das unmittelbar nach der Deklaration erstellt wird. Alle anderen Elemente sind untergeordnete Elemente dieses Wurzelelements und gehören zu einer Gruppe von Wurzelelementen. <br/><br/>Der Inhalt eines wohlgeformten XML-Dokuments muss beim Schreiben der XML-Syntax entsprechen. (Wir werden die XML-Syntax im nächsten Kapitel ausführlich erläutern) <br/><br/><br/>7. Gültiges XML (gültiges XML) <br/><br/>Ein XML, das den XML-Syntaxregeln entspricht und der entsprechenden DTD entspricht Dateispezifikationen Das Dokument wird als gültiges XML-Dokument bezeichnet. Beachten Sie, dass wir „Well-formed XML“ und „Valid <br/>XML“ vergleichen. Der größte Unterschied zwischen ihnen besteht darin, dass eines der XML-Spezifikation vollständig entspricht, während das andere über eine eigene „Document Type Definition (DTD)“ verfügt. <br/><br/>Der Prozess des Vergleichens und Analysierens eines XML-Dokuments mit seiner DTD-Datei, um festzustellen, ob es den DTD-Regeln entspricht, wird als Validierung bezeichnet. Dieser Prozess wird normalerweise von einer Software namens Parser durchgeführt. <br/><br/>Ein gültiges XML-Dokument muss außerdem mit einer XML-Deklaration beginnen, zum Beispiel: <br/><br/><?xml version="1.0" standalone="no" encode="UTF-8"?> ; <br/><br/>Abweichend vom obigen Beispiel wird hier „no“ gesetzt, da es mit der entsprechenden DTD verwendet werden muss. Die DTD-Datei ist wie folgt definiert: <br/><br/><!DOCTYPE type-of-doc SYSTEM/PUBLIC "dtd-name"> Wobei: <br><br>"!DOCTYPE" bedeutet, dass Sie einen DOCTYPE definieren möchten; 🎜>„type-of-doc“ ist der Name des von Ihnen definierten Dokumenttyps. Er ist normalerweise derselbe wie der DTD-Dateiname. <br><br>Nur ​​einer der beiden Parameter „SYSTEM/PUBLIC " verwendet wird. SYSTEM bezieht sich auf die URL der privaten DTD-Datei, die vom Dokument verwendet wird, während PUBLIC sich auf die URL der öffentlichen DTD-Datei bezieht, die vom Dokument verwendet wird. <br><br>„dtd-name“ ist die URL und der Name der DTD-Datei. Alle DTD-Dateien haben das Suffix „.dtd“. <br><br>Wir verwenden immer noch das obige Beispiel, es sollte so geschrieben werden: <br><br><?xml version="1.0" standalone="no" encode="UTF-8"?> <br> <br><!DOCTYPE filelist SYSTEM "filelist.dtd"><br><br> Das Obige ist der Inhalt der XML-Terminologie. Weitere verwandte Inhalte finden Sie auf der chinesischen PHP-Website (www. php.cn)! <br><br></p> <p><br></p> <p></p> <p><br></p> </div> </div> <div class="wzconShengming_sp"> <div class="bzsmdiv_sp">Erklärung dieser Website</div> <div>Der Inhalt dieses Artikels wird freiwillig von Internetnutzern beigesteuert und das Urheberrecht liegt beim ursprünglichen Autor. Diese Website übernimmt keine entsprechende rechtliche Verantwortung. Wenn Sie Inhalte finden, bei denen der Verdacht eines Plagiats oder einer Rechtsverletzung besteht, wenden Sie sich bitte an admin@php.cn</div> </div> </div> <ins class="adsbygoogle" style="display:block" data-ad-format="autorelaxed" data-ad-client="ca-pub-5902227090019525" data-ad-slot="2507867629"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <div class="AI_ToolDetails_main4sR"> <ins class="adsbygoogle" style="display:block" data-ad-client="ca-pub-5902227090019525" data-ad-slot="3653428331" data-ad-format="auto" data-full-width-responsive="true"></ins> <script> (adsbygoogle = window.adsbygoogle || []).push({}); </script> <!-- <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Heißer Artikel</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780570.html" title="R.E.P.O. Energiekristalle erklärten und was sie tun (gelber Kristall)" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. Energiekristalle erklärten und was sie tun (gelber Kristall)</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780641.html" title="R.E.P.O. Beste grafische Einstellungen" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. Beste grafische Einstellungen</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle -Lösung" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle -Lösung</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 Wochen vor</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780520.html" title="R.E.P.O. So reparieren Sie Audio, wenn Sie niemanden hören können" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. So reparieren Sie Audio, wenn Sie niemanden hören können</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796779766.html" title="WWE 2K25: Wie man alles in Myrise freischaltet" class="phpgenera_Details_mainR4_bottom_title">WWE 2K25: Wie man alles in Myrise freischaltet</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/de/article.html">Mehr anzeigen</a> </div> </div> </div> --> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Heiße KI -Werkzeuge</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411540686492.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undresser.AI Undress" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/ai/undresserai-undress" title="Undresser.AI Undress" class="phpmain_tab2_mids_title"> <h3>Undresser.AI Undress</h3> </a> <p>KI-gestützte App zum Erstellen realistischer Aktfotos</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411552797167.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Clothes Remover" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/ai/ai-clothes-remover" title="AI Clothes Remover" class="phpmain_tab2_mids_title"> <h3>AI Clothes Remover</h3> </a> <p>Online-KI-Tool zum Entfernen von Kleidung aus Fotos.</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173410641626608.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Undress AI Tool" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/ai/undress-ai-tool" title="Undress AI Tool" class="phpmain_tab2_mids_title"> <h3>Undress AI Tool</h3> </a> <p>Ausziehbilder kostenlos</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173411529149311.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="Clothoff.io" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/ai/clothoffio" title="Clothoff.io" class="phpmain_tab2_mids_title"> <h3>Clothoff.io</h3> </a> <p>KI-Kleiderentferner</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/ai/ai-hentai-generator" title="AI Hentai Generator" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/ai_manual/001/246/273/173405034393877.jpg?x-oss-process=image/resize,m_fill,h_50,w_50" src="/static/imghw/default1.png" alt="AI Hentai Generator" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/ai/ai-hentai-generator" title="AI Hentai Generator" class="phpmain_tab2_mids_title"> <h3>AI Hentai Generator</h3> </a> <p>Erstellen Sie kostenlos Ai Hentai.</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/de/ai">Mehr anzeigen</a> </div> </div> </div> <script src="https://sw.php.cn/hezuo/cac1399ab368127f9b113b14eb3316d0.js" type="text/javascript"></script> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Heißer Artikel</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780570.html" title="R.E.P.O. Energiekristalle erklärten und was sie tun (gelber Kristall)" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. Energiekristalle erklärten und was sie tun (gelber Kristall)</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780641.html" title="R.E.P.O. Beste grafische Einstellungen" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. Beste grafische Einstellungen</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796785841.html" title="Assassin's Creed Shadows: Seashell Riddle -Lösung" class="phpgenera_Details_mainR4_bottom_title">Assassin's Creed Shadows: Seashell Riddle -Lösung</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>2 Wochen vor</span> <span>By DDD</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796780520.html" title="R.E.P.O. So reparieren Sie Audio, wenn Sie niemanden hören können" class="phpgenera_Details_mainR4_bottom_title">R.E.P.O. So reparieren Sie Audio, wenn Sie niemanden hören können</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>3 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/1796779766.html" title="WWE 2K25: Wie man alles in Myrise freischaltet" class="phpgenera_Details_mainR4_bottom_title">WWE 2K25: Wie man alles in Myrise freischaltet</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <span>4 Wochen vor</span> <span>By 尊渡假赌尊渡假赌尊渡假赌</span> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/de/article.html">Mehr anzeigen</a> </div> </div> </div> <div class="phpgenera_Details_mainR3"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hottools2.png" alt="" /> <h2>Heiße Werkzeuge</h2> </div> <div class="phpgenera_Details_mainR3_bottom"> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab96f0f39f7357.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Notepad++7.3.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/toolset/development-tools/92" title="Notepad++7.3.1" class="phpmain_tab2_mids_title"> <h3>Notepad++7.3.1</h3> </a> <p>Einfach zu bedienender und kostenloser Code-Editor</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/toolset/development-tools/93" title="SublimeText3 chinesische Version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97a3baad9677.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 chinesische Version" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/toolset/development-tools/93" title="SublimeText3 chinesische Version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 chinesische Version</h3> </a> <p>Chinesische Version, sehr einfach zu bedienen</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/toolset/development-tools/121" title="Senden Sie Studio 13.0.1" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58ab97ecd1ab2670.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Senden Sie Studio 13.0.1" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/toolset/development-tools/121" title="Senden Sie Studio 13.0.1" class="phpmain_tab2_mids_title"> <h3>Senden Sie Studio 13.0.1</h3> </a> <p>Leistungsstarke integrierte PHP-Entwicklungsumgebung</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d0e0fc74683535.jpg?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="Dreamweaver CS6" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/toolset/development-tools/469" title="Dreamweaver CS6" class="phpmain_tab2_mids_title"> <h3>Dreamweaver CS6</h3> </a> <p>Visuelle Webentwicklungstools</p> </div> </div> <div class="phpmain_tab2_mids_top"> <a href="https://www.php.cn/de/toolset/development-tools/500" title="SublimeText3 Mac-Version" class="phpmain_tab2_mids_top_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" class="lazy" data-src="https://img.php.cn/upload/manual/000/000/001/58d34035e2757995.png?x-oss-process=image/resize,m_fill,h_50,w_72" src="/static/imghw/default1.png" alt="SublimeText3 Mac-Version" /> </a> <div class="phpmain_tab2_mids_info"> <a href="https://www.php.cn/de/toolset/development-tools/500" title="SublimeText3 Mac-Version" class="phpmain_tab2_mids_title"> <h3>SublimeText3 Mac-Version</h3> </a> <p>Codebearbeitungssoftware auf Gottesniveau (SublimeText3)</p> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/de/ai">Mehr anzeigen</a> </div> </div> </div> <div class="phpgenera_Details_mainR4"> <div class="phpmain1_4R_readrank"> <div class="phpmain1_4R_readrank_top"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/hotarticle2.png" alt="" /> <h2>Heiße Themen</h2> </div> <div class="phpgenera_Details_mainR4_bottom"> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/gmailyxdlrkzn" title="Wo ist der Login-Zugang für Gmail-E-Mail?" class="phpgenera_Details_mainR4_bottom_title">Wo ist der Login-Zugang für Gmail-E-Mail?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>7469</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>15</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/cakephp-tutor" title="CakePHP-Tutorial" class="phpgenera_Details_mainR4_bottom_title">CakePHP-Tutorial</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>1376</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>52</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/steamdzhmcssmgs" title="Wie lautet das Format des Kontonamens von Steam?" class="phpgenera_Details_mainR4_bottom_title">Wie lautet das Format des Kontonamens von Steam?</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>77</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>11</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/winactivationkeyper" title="Win11 -Aktivierungsschlüssel dauerhaft" class="phpgenera_Details_mainR4_bottom_title">Win11 -Aktivierungsschlüssel dauerhaft</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>48</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>19</span> </div> </div> </div> <div class="phpgenera_Details_mainR4_bottoms"> <a href="https://www.php.cn/de/faq/newyorktimesdailybrief" title="NYT -Verbindungen Hinweise und Antworten" class="phpgenera_Details_mainR4_bottom_title">NYT -Verbindungen Hinweise und Antworten</a> <div class="phpgenera_Details_mainR4_bottoms_info"> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/eyess.png" alt="" /> <span>19</span> </div> <div class="phpgenera_Details_mainR4_bottoms_infos"> <img src="/static/imghw/tiezi.png" alt="" /> <span>28</span> </div> </div> </div> </div> <div class="phpgenera_Details_mainR3_more"> <a href="https://www.php.cn/de/faq/zt">Mehr anzeigen</a> </div> </div> </div> </div> </div> <div class="Article_Details_main2"> <div class="phpgenera_Details_mainL4"> <div class="phpmain1_2_top"> <a href="javascript:void(0);" class="phpmain1_2_top_title">Related knowledge<img src="/static/imghw/index2_title2.png" alt="" /></a> </div> <div class="phpgenera_Details_mainL4_info"> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/682567.html" title="Kann ich eine XML-Datei mit PowerPoint öffnen?" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/170834798786772.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Kann ich eine XML-Datei mit PowerPoint öffnen?" /> </a> <a href="https://www.php.cn/de/faq/682567.html" title="Kann ich eine XML-Datei mit PowerPoint öffnen?" class="phphistorical_Version2_mids_title">Kann ich eine XML-Datei mit PowerPoint öffnen?</a> <span class="Articlelist_txts_time">Feb 19, 2024 pm 09:06 PM</span> <p class="Articlelist_txts_p">Können XML-Dateien mit PPT geöffnet werden? XML, Extensible Markup Language (Extensible Markup Language), ist eine universelle Auszeichnungssprache, die häufig im Datenaustausch und in der Datenspeicherung verwendet wird. Im Vergleich zu HTML ist XML flexibler und kann eigene Tags und Datenstrukturen definieren, wodurch die Speicherung und der Austausch von Daten komfortabler und einheitlicher werden. PPT oder PowerPoint ist eine von Microsoft entwickelte Software zum Erstellen von Präsentationen. Es bietet eine umfassende Möglichkeit</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589311.html" title="XML-Daten mit Python filtern und sortieren" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169139624968886.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="XML-Daten mit Python filtern und sortieren" /> </a> <a href="https://www.php.cn/de/faq/589311.html" title="XML-Daten mit Python filtern und sortieren" class="phphistorical_Version2_mids_title">XML-Daten mit Python filtern und sortieren</a> <span class="Articlelist_txts_time">Aug 07, 2023 pm 04:17 PM</span> <p class="Articlelist_txts_p">Implementieren des Filterns und Sortierens von XML-Daten mit Python Einführung: XML ist ein häufig verwendetes Datenaustauschformat, das Daten in Form von Tags und Attributen speichert. Bei der Verarbeitung von XML-Daten müssen wir die Daten häufig filtern und sortieren. Python bietet viele nützliche Tools und Bibliotheken zum Verarbeiten von XML-Daten. In diesem Artikel wird erläutert, wie Sie mit Python XML-Daten filtern und sortieren. Lesen der XML-Datei Bevor wir beginnen, müssen wir die XML-Datei lesen. Python verfügt über viele XML-Verarbeitungsbibliotheken.</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589129.html" title="Verwendung von Python zum Zusammenführen und Deduplizieren von XML-Daten" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/465/014/169137920173088.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Verwendung von Python zum Zusammenführen und Deduplizieren von XML-Daten" /> </a> <a href="https://www.php.cn/de/faq/589129.html" title="Verwendung von Python zum Zusammenführen und Deduplizieren von XML-Daten" class="phphistorical_Version2_mids_title">Verwendung von Python zum Zusammenführen und Deduplizieren von XML-Daten</a> <span class="Articlelist_txts_time">Aug 07, 2023 am 11:33 AM</span> <p class="Articlelist_txts_p">Verwenden von Python zum Zusammenführen und Deduplizieren von XML-Daten XML (eXtensibleMarkupLanguage) ist eine Auszeichnungssprache, die zum Speichern und Übertragen von Daten verwendet wird. Bei der Verarbeitung von XML-Daten müssen wir manchmal mehrere XML-Dateien zu einer zusammenführen oder doppelte Daten entfernen. In diesem Artikel wird erläutert, wie Sie mit Python die Zusammenführung und Deduplizierung von XML-Daten implementieren und entsprechende Codebeispiele angeben. 1. XML-Daten zusammenführen Wenn wir mehrere XML-Dateien haben, müssen wir sie zusammenführen</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/591102.html" title="Konvertieren Sie XML-Daten in Python in das CSV-Format" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169175406767778.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Konvertieren Sie XML-Daten in Python in das CSV-Format" /> </a> <a href="https://www.php.cn/de/faq/591102.html" title="Konvertieren Sie XML-Daten in Python in das CSV-Format" class="phphistorical_Version2_mids_title">Konvertieren Sie XML-Daten in Python in das CSV-Format</a> <span class="Articlelist_txts_time">Aug 11, 2023 pm 07:41 PM</span> <p class="Articlelist_txts_p">Konvertieren Sie XML-Daten in Python in das CSV-Format. XML (ExtensibleMarkupLanguage) ist eine erweiterbare Auszeichnungssprache, die häufig zur Datenspeicherung und -übertragung verwendet wird. CSV (CommaSeparatedValues) ist ein durch Kommas getrenntes Textdateiformat, das häufig für den Datenimport und -export verwendet wird. Bei der Datenverarbeitung ist es manchmal erforderlich, XML-Daten zur einfachen Analyse und Verarbeitung in das CSV-Format zu konvertieren. Python ist mächtig</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589055.html" title="Importieren Sie XML-Daten mit PHP in die Datenbank" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169137353437167.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Importieren Sie XML-Daten mit PHP in die Datenbank" /> </a> <a href="https://www.php.cn/de/faq/589055.html" title="Importieren Sie XML-Daten mit PHP in die Datenbank" class="phphistorical_Version2_mids_title">Importieren Sie XML-Daten mit PHP in die Datenbank</a> <span class="Articlelist_txts_time">Aug 07, 2023 am 09:58 AM</span> <p class="Articlelist_txts_p">Importieren von XML-Daten in die Datenbank mit PHP Einführung: Während der Entwicklung müssen wir häufig externe Daten zur weiteren Verarbeitung und Analyse in die Datenbank importieren. Als häufig verwendetes Datenaustauschformat wird XML häufig zum Speichern und Übertragen strukturierter Daten verwendet. In diesem Artikel wird erläutert, wie Sie mit PHP XML-Daten in eine Datenbank importieren. Schritt 1: XML-Datei analysieren Zuerst müssen wir die XML-Datei analysieren und die erforderlichen Daten extrahieren. PHP bietet mehrere Möglichkeiten zum Parsen von XML. Die am häufigsten verwendete davon ist die Verwendung von Simple</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589395.html" title="Python implementiert die Konvertierung zwischen XML und JSON" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169140665135126.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Python implementiert die Konvertierung zwischen XML und JSON" /> </a> <a href="https://www.php.cn/de/faq/589395.html" title="Python implementiert die Konvertierung zwischen XML und JSON" class="phphistorical_Version2_mids_title">Python implementiert die Konvertierung zwischen XML und JSON</a> <span class="Articlelist_txts_time">Aug 07, 2023 pm 07:10 PM</span> <p class="Articlelist_txts_p">Python implementiert die Konvertierung zwischen XML und JSON. Einführung: Im täglichen Entwicklungsprozess müssen wir häufig Daten zwischen verschiedenen Formaten konvertieren. XML und JSON sind gängige Datenaustauschformate. In Python können wir verschiedene Bibliotheken zum Konvertieren zwischen XML und JSON verwenden. In diesem Artikel werden mehrere häufig verwendete Methoden mit Codebeispielen vorgestellt. 1. Um XML in Python in JSON zu konvertieren, können wir das Modul xml.etree.ElementTree verwenden</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589638.html" title="Behandeln von Fehlern und Ausnahmen in XML mit Python" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169146874751245.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Behandeln von Fehlern und Ausnahmen in XML mit Python" /> </a> <a href="https://www.php.cn/de/faq/589638.html" title="Behandeln von Fehlern und Ausnahmen in XML mit Python" class="phphistorical_Version2_mids_title">Behandeln von Fehlern und Ausnahmen in XML mit Python</a> <span class="Articlelist_txts_time">Aug 08, 2023 pm 12:25 PM</span> <p class="Articlelist_txts_p">Behandeln von Fehlern und Ausnahmen in XML mit Python XML ist ein häufig verwendetes Datenformat zum Speichern und Darstellen strukturierter Daten. Wenn wir Python zum Verarbeiten von XML verwenden, können manchmal Fehler und Ausnahmen auftreten. In diesem Artikel werde ich die Verwendung von Python zur Behandlung von Fehlern und Ausnahmen in XML vorstellen und einige Beispielcodes als Referenz bereitstellen. Verwenden Sie Try-Exception-Anweisungen, um XML-Parsing-Fehler abzufangen. Wenn wir Python zum Parsen von XML verwenden, können manchmal Fehler auftreten</p> </div> <div class="phphistorical_Version2_mids"> <a href="https://www.php.cn/de/faq/589645.html" title="Python analysiert Sonderzeichen und Escape-Sequenzen in XML" class="phphistorical_Version2_mids_img"> <img onerror="this.onerror=''; this.src='/static/imghw/default1.png'" src="/static/imghw/default1.png" class="lazy" data-src="https://img.php.cn/upload/article/000/887/227/169147000424336.jpg?x-oss-process=image/resize,m_fill,h_207,w_330" alt="Python analysiert Sonderzeichen und Escape-Sequenzen in XML" /> </a> <a href="https://www.php.cn/de/faq/589645.html" title="Python analysiert Sonderzeichen und Escape-Sequenzen in XML" class="phphistorical_Version2_mids_title">Python analysiert Sonderzeichen und Escape-Sequenzen in XML</a> <span class="Articlelist_txts_time">Aug 08, 2023 pm 12:46 PM</span> <p class="Articlelist_txts_p">Python analysiert Sonderzeichen und Escape-Sequenzen in XML. XML (eXtensibleMarkupLanguage) ist ein häufig verwendetes Datenaustauschformat, das zum Übertragen und Speichern von Daten zwischen verschiedenen Systemen verwendet wird. Bei der Verarbeitung von XML-Dateien kommt es häufig vor, dass Sonderzeichen und Escape-Sequenzen enthalten sind, die zu Analysefehlern oder einer Fehlinterpretation der Daten führen können. Daher müssen wir beim Parsen von XML-Dateien mit Python verstehen, wie mit diesen Sonderzeichen und Escape-Sequenzen umgegangen wird. 1. Sonderzeichen und</p> </div> </div> <a href="https://www.php.cn/de/be/" class="phpgenera_Details_mainL4_botton"> <span>See all articles</span> <img src="/static/imghw/down_right.png" alt="" /> </a> </div> </div> </div> </main> <footer> <div class="footer"> <div class="footertop"> <img src="/static/imghw/logo.png" alt=""> <p>Online-PHP-Schulung für das Gemeinwohl,Helfen Sie PHP-Lernenden, sich schnell weiterzuentwickeln!</p> </div> <div class="footermid"> <a href="https://www.php.cn/de/about/us.html">Über uns</a> <a href="https://www.php.cn/de/about/disclaimer.html">Haftungsausschluss</a> <a href="https://www.php.cn/de/update/article_0_1.html">Sitemap</a> </div> <div class="footerbottom"> <p> © php.cn All rights reserved </p> </div> </div> </footer> <input type="hidden" id="verifycode" value="/captcha.html"> <script>layui.use(['element', 'carousel'], function () {var element = layui.element;$ = layui.jquery;var carousel = layui.carousel;carousel.render({elem: '#test1', width: '100%', height: '330px', arrow: 'always'});$.getScript('/static/js/jquery.lazyload.min.js', function () {$("img").lazyload({placeholder: "/static/images/load.jpg", effect: "fadeIn", threshold: 200, skip_invisible: false});});});</script> <script src="/static/js/common_new.js"></script> <script type="text/javascript" src="/static/js/jquery.cookie.js?1744430601"></script> <script src="https://vdse.bdstatic.com//search-video.v1.min.js"></script> <link rel='stylesheet' id='_main-css' href='/static/css/viewer.min.css?2' type='text/css' media='all' /> <script type='text/javascript' src='/static/js/viewer.min.js?1'></script> <script type='text/javascript' src='/static/js/jquery-viewer.min.js'></script> <script type="text/javascript" src="/static/js/global.min.js?5.5.53"></script> <script> var _paq = window._paq = window._paq || []; /* tracker methods like "setCustomDimension" should be called before "trackPageView" */ _paq.push(['trackPageView']); _paq.push(['enableLinkTracking']); (function () { var u = "https://tongji.php.cn/"; _paq.push(['setTrackerUrl', u + 'matomo.php']); _paq.push(['setSiteId', '9']); var d = document, g = d.createElement('script'), s = d.getElementsByTagName('script')[0]; g.async = true; g.src = u + 'matomo.js'; s.parentNode.insertBefore(g, s); })(); </script> <script> // top layui.use(function () { var util = layui.util; util.fixbar({ on: { mouseenter: function (type) { layer.tips(type, this, { tips: 4, fixed: true, }); }, mouseleave: function (type) { layer.closeAll("tips"); }, }, }); }); document.addEventListener("DOMContentLoaded", (event) => { // 定义一个函数来处理滚动链接的点击事件 function setupScrollLink(scrollLinkId, targetElementId) { const scrollLink = document.getElementById(scrollLinkId); const targetElement = document.getElementById(targetElementId); if (scrollLink && targetElement) { scrollLink.addEventListener("click", (e) => { e.preventDefault(); // 阻止默认链接行为 targetElement.scrollIntoView({ behavior: "smooth" }); // 平滑滚动到目标元素 }); } else { console.warn( `Either scroll link with ID '${scrollLinkId}' or target element with ID '${targetElementId}' not found.` ); } } // 使用该函数设置多个滚动链接 setupScrollLink("Article_Details_main1L2s_1", "article_main_title1"); setupScrollLink("Article_Details_main1L2s_2", "article_main_title2"); setupScrollLink("Article_Details_main1L2s_3", "article_main_title3"); setupScrollLink("Article_Details_main1L2s_4", "article_main_title4"); setupScrollLink("Article_Details_main1L2s_5", "article_main_title5"); setupScrollLink("Article_Details_main1L2s_6", "article_main_title6"); // 可以继续添加更多的滚动链接设置 }); window.addEventListener("scroll", function () { var fixedElement = document.getElementById("Article_Details_main1Lmain"); var scrollTop = window.scrollY || document.documentElement.scrollTop; // 兼容不同浏览器 var clientHeight = window.innerHeight || document.documentElement.clientHeight; // 视口高度 var scrollHeight = document.documentElement.scrollHeight; // 页面总高度 // 计算距离底部的距离 var distanceToBottom = scrollHeight - scrollTop - clientHeight; // 当距离底部小于或等于300px时,取消固定定位 if (distanceToBottom <= 980) { fixedElement.classList.remove("Article_Details_main1Lmain"); fixedElement.classList.add("Article_Details_main1Lmain_relative"); } else { // 否则,保持固定定位 fixedElement.classList.remove("Article_Details_main1Lmain_relative"); fixedElement.classList.add("Article_Details_main1Lmain"); } }); </script> </body> </html>