Site Tools


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/06/13 08:41]
114.119.135.37 old revision restored (2026/06/07 19:58)
notes:xml_cheat_sheet [2026/06/13 21:30] (current)
114.119.158.251 old revision restored (2026/06/11 00:45)
Line 18: Line 18:
 <to>Tove</to> <to>Tove</to>
 <from>Jani</from> <from>Jani</from>
-<par>Hi.</par> 
-<par>Bye.</par> 
 </note> </note>
 </code> </code>
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.
  
-  * XML documents can be extended by adding new element typesImplementations must ignore unknown element types.+  * Elements may have attributes (date in the above)All attribute values must be quoted.
  
   * 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. 
- 
-Elements can have either 
-  * Empty content 
-  * Simple content(text ony) 
-  * Element content (child elements) 
-  * Mixed content (child elements and text) 
- 
-Elements can be parents, children or siblings of other elements. 
- 
-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). Names shoud not include . : or - . 
- 
- 
notes/xml_cheat_sheet.1781365279.txt.gz ยท Last modified: 2026/06/13 08:41 by 114.119.135.37