pXML Syntax Railroad Diagrams

The following railroad diagrams specify pXML's basic syntax. Extensions like attributes, namespaces, etc. are not included.

The syntax is also specified as EBNF.

Notes:

Element

Empty element

Example:

[map]

Non-empty element

Examples:

[teacher Bob]
[div A [i nice] dog]

Name

Examples:

index
Index_12
_INDEX_12.5-a

Value

Examples:

Tree
[list]
[color orange]
All is [i [b very] well]!

Text

Examples:

abc
3.14
config.\["port"\]

Character

Examples:

a
é
\[        ([)
\]        (])
\\        (\)
\u002A    (*)

Hexadecimal digit

Examples:

1
a
F