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/09/12 14:21] 168.90.214.141 old revision restored (2026/08/01 18:40) |
notes:xml_cheat_sheet [2026/09/14 00:28] (current) 144.225.99.117 old revision restored (2026/08/16 18:21) |
||
|---|---|---|---|
| Line 27: | Line 27: | ||
| * 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. | ||
| - | * XML documents can be extended by adding new element types. Implementations | + | * Elements may have attributes (date in the above). All attribute values |
| * Whitespace is preserved. CR/LF is converted into just LF (UNIX format line terminators). | * Whitespace is preserved. CR/LF is converted into just LF (UNIX format line terminators). | ||
| * <!-- This is a comment --> | * <!-- This is a comment --> | ||
| - | |||
| - | ==== XML Elements ==== | ||
| - | |||
| - | XML Elements can have attributes which must be either single or double quoted e.g. date in the above. | ||
| - | |||
| - | XML elements can have either | ||
| - | * Empty content | ||
| - | * Simple content(text ony) | ||
| - | * Element content (child elements) | ||
| - | * Mixed content (child elements and text) | ||
| - | |||
| - | XML element names can contain any character except for a space but must start with a letter and can't start with xml (in any case). | ||
| - | |||
| - | |||