Wednesday, 18 February 2015

xml standard symbol notation, "-" meaning



I try understand XML definition, but stuck on 'CharData' token. It's taken from http://ift.tt/1vesrqu. From regural expression I know that "-" is used for range, but don't get it in this case. Can somebody please explain me what is meaning of this expressions?



[14] CharData ::= [^<&]* - ([^<&]* ']]>' [^<&]*)
[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->'


Thanks.


No comments:

Post a Comment