___ ___ _ _ ___ ___ ___ ___ _ ___ _ _ ______
_______________ _________ |_, |== |\| |== |-< |-| | | [_] |\| __/_/_______
_____ ___/__(_)_____________ ____/____________ ___________________________ _______ /__
____ /_ ___ /__ ___/ _ \ / _ __ \_ __ `__ \ __ \ __ \_ __ \ _ \_ __ \ __/
___ __/ __ / _ / / __/ /___ / /_/ / / / / / / /_/ / /_/ / / / / __/ / / / /_
/_/ /_/ /_/ \___/\____/ \____//_/ /_/ /_/_/ __/\____//_/ /_/\___//_/ /_/\__/
(c) Lada 'Ray' Lostak (c) Orcave (c) 1996-2004
XML digest (this is _NOT_ XML draft, see w3.org for this purpuse, this is just survey)
DTD & XML tags
--------------
general tag
body
command
standard XML commands
xml
version XML version (now 1.0)
encoding text encoding (default UTF-8)
standalone can be parsed without referenced DTD's - yes/no
comment
declaration
]>
char data section
Tags and entities references are ignored in CDATA body, text is readed as-is
entity
referenced by &name; / %name;
internals: lg,gt,amp,apos,quot
when substituting, added space before/after entity body
parameter entity (DTD only)
external
public
public + system URL (SYSTEM musn't be used)
binary entity
direct code
DEC;
HEX;
dtd
element
attlist
entity
notation
doctype declaration
doctype declaration
...
SYSTEM "url" required DTD
PUBLIC "pub id" "system" -//-
body is 'internal dtd'
element
...
EMPTY empty element
ANY any other child element
(#PCDATA) parseable char data (text element)
(#PCDATA | ...)* mixed - PCDATA need to be 1st, ending * is required
(names expression) child elements expression ( ) + * | ,
element attribs
..
CDATA char data
NMTOKEN token (123abc, xyz, ...)
NMTOKENS token token token
ENTITY entity reference
ENTITIES
ID
IDREF
IDREFS
NOTATION format sets element data format (reading ends with '')
NOTATION (format | format)
(value_list)
(value_list) "default" list of allowed valued - divided by | connector
#REQUIRED have to be filled
#IMPLIED if value not used, application should use 'default'
#FIXED "value" only fixed value allowed, attrib filled even not used @ element
including
notation
...
SYSTEM "url"
PUBLIC "pub id" "system"