Writing a simple XML document - The basics of writing XML documents, grammar, rules, well formed and valid XML.
Microsoft Sample Validator - A page where you can test whether your documents are valid and well formed.
The files from this chapter are in the writing folder.
| Page | Section | Code |
|---|---|---|
| 23 | Rules for Writing XML (note) | |
| 24 | Declaring the XML Version | version.xml |
| 25 | Creating the Root Element | root.xml |
| 26 | Writing Non-Empty Elements | nonempty.xml |
| 27 | Nesting Elements | |
| 28 | Adding Attributes | |
| 29 | Using Empty Elements | empty.xml |
| 30 | Writing Comments | comments.xml |
| 31 | Writing Five Special Symbols | specialsymbols.xml |
| 32 | Displaying Elements as Text | cdata.xml |
Click here to return to the course outline.
Last revision September 10, 2001
http://www.informaticus.org/COIN78/week2/index.htm