Site Tools


Hotfix release available: 2026-07-14a "Mort". upgrade now! [57.1] (what's this?)
New release available: 2026-07-14 "Mort". upgrade now! [57] (what's this?)
Hotfix release available: 2025-05-14b "Librarian". upgrade now! [56.2] (what's this?)
Hotfix release available: 2025-05-14a "Librarian". upgrade now! [56.1] (what's this?)
New release available: 2025-05-14 "Librarian". upgrade now! [56] (what's this?)
Hotfix release available: 2024-02-06b "Kaos". upgrade now! [55.2] (what's this?)
Hotfix release available: 2024-02-06a "Kaos". upgrade now! [55.1] (what's this?)
New release available: 2024-02-06 "Kaos". upgrade now! [55] (what's this?)
Hotfix release available: 2023-04-04b "Jack Jackrum". upgrade now! [54.2] (what's this?)
Hotfix release available: 2023-04-04a "Jack Jackrum". upgrade now! [54.1] (what's this?)
New release available: 2023-04-04 "Jack Jackrum". upgrade now! [54] (what's this?)
Hotfix release available: 2022-07-31b "Igor". upgrade now! [53.1] (what's this?)
Hotfix release available: 2022-07-31a "Igor". upgrade now! [53] (what's this?)
New release available: 2022-07-31 "Igor". upgrade now! [52.2] (what's this?)
New release candidate 2 available: rc2022-06-26 "Igor". upgrade now! [52.1] (what's this?)
New release candidate available: 2022-06-26 "Igor". upgrade now! [52] (what's this?)
Hotfix release available: 2020-07-29a "Hogfather". upgrade now! [51.4] (what's this?)
notes:xml_cheat_sheet

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
notes:xml_cheat_sheet [2026/07/22 02:30]
47.79.202.41 old revision restored (2026/06/13 23:31)
notes:xml_cheat_sheet [2026/07/24 19:16] (current)
47.79.206.148 old revision restored (2026/06/21 09:05)
Line 1: Line 1:
 ===== XML Cheat Sheet ===== ===== XML Cheat Sheet =====
  
-I stumble across XML documents intermittently and every time I need to review the basics again. This is a cheat sheet so that I can review it whenever I need to. Information here is a summarized form of the [[http://www.w3schools.com/xml/default.asp | XML Tutorial]]+I stumble across XML documents intermittently and every time I need to review the basics again. This is a cheat sheet so that I can review it whenever I need to. This is a summarized form of the [[http://www.w3schools.com/xml/default.asp | XML Tutorial]]. 
 + 
 +Also see the following related cheat sheets : 
 +  * [[DTD Cheat Sheet]] 
 +  * [[XML Schema Cheat Sheet]]
  
 ==== What is XML ==== ==== What is XML ====
Line 53: Line 57:
  
   * A DTD or XML Schema defines the document structure with a list of legal elements and attributes.   * A DTD or XML Schema defines the document structure with a list of legal elements and attributes.
 +
  
 ==== XML Elements ==== ==== XML Elements ====
Line 76: Line 81:
   * A CDATA section starts with "<![CDATA[" and ends with "]]>":   * A CDATA section starts with "<![CDATA[" and ends with "]]>":
  
-  * Everything inside a CDATA section except for [[> is permitted.+  * Everything inside a CDATA section except for ]]> is permitted.
  
 ==== XML Attributes ==== ==== XML Attributes ====
Line 103: Line 108:
  
   * If the form xmlns="namespaceURI" is used instead then all child elements are automatically in that default namespace.   * If the form xmlns="namespaceURI" is used instead then all child elements are automatically in that default namespace.
- 
-==== Document Type Definition (DTD) ==== 
- 
-  * A **D**ocument **T**ype **D**efinition (DTD) defines the legal building blocks of an XML document. It defines the document structure with a list of legal elements and attributes. 
- 
-  * A DTD can be internally defined e.g. <code> 
-<!DOCTYPE root-element [ 
-  element-declarations 
-]> 
-</code> or externally defined e.g. <code> 
-<!DOCTYPE root-element SYSTEM "filename.dtd"> 
-</code> where the element-declarations are in filename.dtd 
- 
-  * A simple example of DTD element-declarations <code> 
-  <!ELEMENT note (to,from)> 
-  <!ELEMENT to      (#PCDATA)> 
-  <!ELEMENT from    (#PCDATA)> 
-</code> This says that note contains 2 child elements and to and from are of type #PCDATA 
- 
-  * A DTD for an XML document may contain the following building blocks 
-    * elements 
-    * attributes 
-    * entities (e.g. character entities) 
-    * PCDATA (parsed character data parsed for entities and markup) 
-    * CDATA (character data that is not parsed) 
  
 ==== XML Stylesheets ==== ==== XML Stylesheets ====
notes/xml_cheat_sheet.1784712637.txt.gz · Last modified: 2026/07/22 02:30 by 47.79.202.41