Original Post
Hi, not sure if this is the best forum, but: Does anyone know of a #if 0 equivalent for XML? (you cant have a nested ) Cheers. (yes - I am too lazy to read the specs) edit: brackets
Definition: Comments MAY appear anywhere in a document outside other markup; in addition, they MAY appear within the document type declaration at places allowed by the grammar. They are not part of the document's character data; an XML processor MAY, but need not, make it possible for an application to retrieve the text of comments. For compatibility, the string "--" (double-hyphen) MUST NOT occur within comments.] Parameter entity references MUST NOT be recognized within comments.Comments[15] Comment ::= '<!--' ((Char - '-') | ('-' (Char - '-')))* '-->' An example of a comment:<!-- declarations for <head> & <body> -->Note that the grammar does not allow a comment ending in --->. The following example is not well-formed.<!-- B+, B, or B--->Quote:
Original post by clum
Is there some reason why you want to? I don't believe I've ever done #if 0 in C
This topic has been locked by a moderator. New replies are not allowed.
With your permission, GameDev.net uses analytics cookies to understand how people use the platform. You can accept analytics or continue with necessary cookies only. Learn more