Open-Source-Software-Entwicklung und Downloads

Anzeigen XMLBNF: a simple BNF for XML

category(Tag) tree

file info

category(Tag)
About Developent
dateiname
xmlbnf
letztes update
2004-08-04 19:26
typ
Plain Text
editor
shin
beschreibung
a short description for a BNF like notation for XML schema
sprache
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>>