Back to Humanities Computing 2002-2003
| Part | Description |
| < | start-tag open delimiter |
| </ | end-tag open delimiter |
| title | Generic Identifier (GI) |
| > | tag close delimiter |
| eg.: <title> or </title> | |
| Note: | XML is case sensitive in the naming of the elements. <title> is not <TITLE> is not <Title> is not <tItle> etc. |
| Part | Description |
| <title> | opening Tag |
| XML Definitions | element's Content |
| </title> | closing Tag |
| eg.: <title>XML Definitions</title> | |
| Part | Description |
| < | start-tag open delimiter |
| Element-Name | name of the element |
| Attribute-Name | name of the attribute |
| = | value indicator |
| " | literal string delimiter to delimit attribute values |
| Attribute-Value | attribute's value |
| " | literal string delimiter |
| > | start-tag close delimiter |
| eg.: <Element-Name Attribute-Name="Attribute-Value"> | |
| Part | Description |
| & | entity reference open delimiter |
| Entity-Name | entity name |
| ; | entity reference close delimiter |
| eg.: &Entity-Name; | |
| Part | Description |
| <! | markup declaration open delimiter |
| ELEMENT | declaration type keyword |
| Element-Name | Element's Generic Identifier |
| (b? (c|d))+ | content model |
| > | markup declaration close delimiter |
| eg.: <!ELEMENT (b? (c|d))+> | |
| Part | Description | Explanation |
| ? | optional occurrence indicator | 0 or 1 |
| + | required and repeatable | 1 or many |
| * | optional and repeatable | 0, 1 or many |
| Part | Description | Example | Explanation |
| , | sequence connector | (a,b) | a and b in this exact order |
| & | AND connector | (a&b) | a and b in any order |
| | | OR connector | (a|b) | either a or b, but not both |
| <?xml version="1.0"?> |
| Part | Description |
| <! | markup declaration open delimiter |
| DOCTYPE | DOCTYPE keyword |
| Document-Type-Name | document type name |
| PUBLIC and/or SYSTEM | Publicly declared DTD and/or external DTD wich is on the system |
| " | literal string delimiter |
| public or system identifier | the pathname or public name of the DTD |
| " | literal string delimiter |
| > | markup declaration close delimiter |
| eg.: <!DOCTYPE TEI.2 PUBLIC "-//TEI//DTD TEI Lite XML ver. 1//EN"
"teixlite.dtd"> <!DOCTYPE email SYSTEM "/download/email.dtd"> |
|
| Part | Description |
| [ | declaration subset open delimiter |
| declaration subset | private markup or the DTD |
| ] | declaration subset close delimiter |
| Part | Description |
| <!-- | comment start delimiter |
| Comment-Content | comment content |
| --> | coment close delimiter |
| eg.: <!-- Comment-Content --> | |