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:
- Rectangles (e.g. ) represent non-terminal elements. You can click on them to go to their definition.
- Rounded rectangles (e.g. ) represent characters to type.
- Thanks to Tab Atkins for his excellent Railroad-diagram Generator, used to generate these diagrams.
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