[Home] [Research] [Teaching] [Projects] [Publications] [Curriculum Vitae]

Back to Humanities Computing 2002-2003


XML DEFINITIONS

[Tags] [Elements] [Attributes] [Entities] [Formal Element Declaration] [Occurrence Indicators][Connectors] [XML Declaration] [DocType Declaration] [DocType Declaration Subset] [XML Comment]

Tags

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.

Elements

Part Description
<title> opening Tag
XML Definitions element's Content
</title> closing Tag
eg.: <title>XML Definitions</title>

Attributes

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">

Entities

Part Description
& entity reference open delimiter
Entity-Name entity name
; entity reference close delimiter
eg.: &Entity-Name;

Formal Element Declaration

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))+>

Occurrence Indicators

Part Description Explanation
? optional occurrence indicator 0 or 1
+ required and repeatable 1 or many
* optional and repeatable 0, 1 or many

Connectors

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 Declaration

<?xml version="1.0"?>

DocType Declaration

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">

DocType Declaration Subset

Part Description
[ declaration subset open delimiter
declaration subset private markup or the DTD
] declaration subset close delimiter

XML Comment

Part Description
<!-- comment start delimiter
Comment-Content comment content
--> coment close delimiter
eg.: <!-- Comment-Content -->

[Home] [Research] [Teaching] [Projects] [Publications] [Curriculum Vitae]

Valid XHTML 1.0!