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/11/02 09:06] 212.252.151.87 old revision restored (2026/08/03 07:01) |
notes:xml_cheat_sheet [2026/11/03 04:02] (current) 167.94.195.93 old revision restored (2026/10/31 09:03) |
||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | |||
| - | |||
| ===== XML Cheat Sheet ===== | ===== XML Cheat Sheet ===== | ||
| Line 29: | 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. | ||
| - | * Elements may have attributes (date in the above). All attribute values | + | * XML documents can be extended by adding new element types. Implementations |
| * 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). | ||
| Line 36: | Line 34: | ||
| ==== XML Elements ==== | ==== 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). | ||