mredfelix
asked on
XML Context free grammar
I want to know how to describe XML in the form of a Grammar. I am not sure if it is a COntext free Grammar or a meta Grammar. I need to know the specfication for an XMl Context free gammar.
ASKER
can u explaine to me the termnology of the examples u have given me so i can learn how to read them
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
[45] elementdecl ::= '<!ELEMENT' S Name S contentspec S? '>' [VC: Unique Element Type Declaration]
[46] contentspec ::= 'EMPTY' | 'ANY' | Mixed | children
and voilà! you have a grammar for XML.
HTH