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/21 15:03]
114.119.158.251 old revision restored (2007/10/04 01:29)
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 ====
  
-  * E**X**tensible **M**arkup **L**anguage (XML) is a markup language designed to describe data. It has no predefined tags and uses a Document Type Definition (DTD) or an XML Schema to describe the data. An XML document together with its DTD or XML Schema is self-descriptive.+  * E**X**tensible **M**arkup **L**anguage (XML) is a markup language designed to describe data. It has no predefined tags
 + 
 +  * XML uses a Document Type Definition (DTD) or an XML Schema to describe the data. An XML document together with its DTD or XML Schema is self-descriptive
 + 
 +  * XML Schema is the successor to DTD because it is richer and more extensible.
  
-  * XML uses text files to store data and can be used to create new languages e.g. WAP, WML, XHTML etc.+  * XML uses text files to store data and can be used to create new languages e.g. WAP, WML, XHTML, RSS, SOAP etc.
  
   * Because XML documents may contain Unicode characters, they should be saved as Unicode text files. The encoding attribute should be the same as the encoding that the text file is saved as.   * Because XML documents may contain Unicode characters, they should be saved as Unicode text files. The encoding attribute should be the same as the encoding that the text file is saved as.
 +
 +  * XML files are completely platform-independent and portable (EBCDIC platforms ?).
  
 ==== XML Syntax ==== ==== XML Syntax ====
Line 46: Line 56:
   * AN XML document which is well-formed and conforms to the rules of a DTD or XML Schema is described as valid.   * AN XML document which is well-formed and conforms to the rules of a DTD or XML Schema is described as valid.
  
-  * A DTD or XML Schema defines the document structure with a list of legal elements.+  * A DTD or XML Schema defines the document structure with a list of legal elements and attributes. 
  
 ==== XML Elements ==== ==== XML Elements ====
Line 70: 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 102: Line 113:
   * **C**ascading **S**tyle **S**heets (CSS) are used to display XML by associating styles with element types.   * **C**ascading **S**tyle **S**heets (CSS) are used to display XML by associating styles with element types.
  
-  * An XML document is associated with a stylesheet using +  * An XML document is associated with a stylesheet using
 <code> <code>
 <?xml-stylesheet type="text/css" ref="simple.css"?> <?xml-stylesheet type="text/css" ref="simple.css"?>
notes/xml_cheat_sheet.1784671391.txt.gz · Last modified: 2026/07/21 15:03 by 114.119.158.251