This shows you the differences between two versions of the page.
| Both sides previous revision Previous revision Next revision | Previous revision | ||
|
notes:xml_cheat_sheet [2026/06/04 13:10] 47.79.10.248 old revision restored (2007/10/04 14:10) |
notes:xml_cheat_sheet [2026/06/07 07:31] (current) 8.209.74.18 old revision restored (2007/10/05 18:53) |
||
|---|---|---|---|
| Line 6: | Line 6: | ||
| * [[DTD Cheat Sheet]] | * [[DTD Cheat Sheet]] | ||
| * [[XML Schema Cheat Sheet]] | * [[XML Schema Cheat Sheet]] | ||
| + | |||
| + | For reference this is the [[http:// | ||
| ==== What is XML ==== | ==== What is XML ==== | ||
| Line 20: | Line 22: | ||
| * XML files are completely platform-independent and portable (EBCDIC platforms ?). | * XML files are completely platform-independent and portable (EBCDIC platforms ?). | ||
| + | |||
| ==== XML Syntax ==== | ==== XML Syntax ==== | ||
| Line 38: | Line 41: | ||
| * The first line is an XML declaration which defines the XML version and the character encoding used in the document. | * The first line is an XML declaration which defines the XML version and the character encoding used in the document. | ||
| - | * XML tags are case-sensitive and must have a corresponding closing tag. Tags must be properly nested. | + | * XML tags are case-sensitive and must have a corresponding closing tag. Empty elements can combine the start and closing tag e.g. <br />. |
| + | |||
| + | * XML tags must be properly nested. | ||
| * An XML document must have a root element (note in the above). All elements may have child elements. | * An XML document must have a root element (note in the above). All elements may have child elements. | ||
| Line 90: | Line 95: | ||
| * Although data can be stored either in child elements and attributes, attributes should really be used for metadata i.e. data about the data which is not part of the data itself. For example an element id is best stored in an attribute. | * Although data can be stored either in child elements and attributes, attributes should really be used for metadata i.e. data about the data which is not part of the data itself. For example an element id is best stored in an attribute. | ||
| + | |||
| ==== XML Namespaces ==== | ==== XML Namespaces ==== | ||
| + | |||
| + | * XML Namespaces is covered as a [[http:// | ||
| * XML namespaces allow element names from XML documents not to conflict if they mean something different. | * XML namespaces allow element names from XML documents not to conflict if they mean something different. | ||