EBNF Variant that Used to Define the XML Grammar

From NovaOrdis Knowledge Base
Jump to navigation Jump to search

External

Internal

Overview

W3C uses an variant of the Extended Backus-Naur Form notation to express the formal grammar of XML.

Notation

Each rule in the grammar defines one of the symbols, in the form:

symbol ::= expression

More details about Backus-Naur Form are available here:

Context-Free Grammars

Literal strings are quoted.

Within the expression on the right-hand side of a rule, the following expressions are used to match strings of one or more characters:

#xN