View XMLBNF: a simple BNF for XML
file info- category(Tag)
- About Developent
- file name
- xmlbnf
- last update
- 2004-08-04 19:26
- type
- Plain Text
- editor
- shin
- description
- a short description for a BNF like notation for XML schema
- language
- English
- translate
XML BNF --
simple BNF for XML.
<<tag1>> == <tag1 attr1 attr2 /> | --- (1)
<tag1 {attr1, attr2}/> | --- (2)
<tag1><<tag2>>*</tag1> | --- (3)
<tag1><<tag2>>+</tag1> | --- (4)
<<tag2>>|<<tag3>> --- (5)
(1) <<tag1>> is a <tag1 attr1='val1' attr2='val2'/>
(2) <<tag1>> has a attribute attr1 or attr2
(3) <<tag1>> is <tag1>...</tag1> and ... is 0 or more <<tag2>>
(4) <<tag1>> is <tag1>...</tag1> and ... is 1 or more <<tag2>>
(5) <<tag1>> is <<tag2>> or <<tag3>>
| |