Cartoon Edmund

Home

Calendar

Contact

Knight Vision

Sitemap



Edmund J. Sutcliffe
Thoughtful Solutions, Creatively Implemented and Communicated

Edmund's XML Quick Reference - 1 2 3 4
Click here for a printable version of this page.

HEADING DECLARATION

<!ELEMENT    name    (content-model)>
          |             |                     |
        \/            \/                    \/
        keyword       tag name                   formal definition of element's
                             to be known by         allowed content
CONNECTORS
, "Then" Follow with (in sequence)
| "Or" Select (only) one from the group

OCCURRENCE INDICATORS
(no indicator) Required One and only one
? Optional None or one
* Optional, repeatable None, one or more
+ Required, repeatable One or more

GROUPINGS
( Start content model or group
) End content model or group



#PCDATA in Models (first, OR bars, asterisk)
(PCDATA)

(#PCDATA           |          elem1               |        elem2 )         *
           |              VBar          |               VBar         |                |
     keyword                  element name          element name   always include *

ANY Element Keyword

<! ELEMENT       name            ANY   >
         |                |                      |
 keyword    tag name to   keyword ANY
                    be known by

EMPTY Element Keyword

<!ELEMENT       name                 EMPTY  >
         |                |                         |
 keyword   tag name to be    keyword EMPTY
                  known by

Attribute Declaration

<!ATTLIST      element               name                        declvalue     default >
        |                |                          |                                 |              |
keyword   name of the        name of attribute  |        keyword or default value
                 associated                           what kind of value(s)
                  element
Declared Value Keywords
CDATA Data character string (default if well-formed)
NMTOKEN Name token
NMTOKENS One or more name tokens (space separated)
ID Unique identifier for element
IDREF Reference to ID on another element
IDREFS One or more IDREF's (space separated)
ENTITY Name of an entity (declared elsewhere)
ENTITIES One or more names of entities


Cartoon Edmund

Quick Ref

Tech Tips

Travel Tips

Tech News

Images