DTD Comment

DTD > Structure > DTD Comment

Allows notes and other human readable comments to be included within a DTD. XML Parsers should ignore comments.

Some constrains govern where comments may be placed with an XML file.

  • Comments must not appear within an ENTITY Tag
  • Comments must not appear within an ELEMENT Tag
  • Comments must not appear within an ATTLIST Tag
  • Comments must not appear within a NOTATION tag

EBNF Syntax

The syntax for an XML Comment described by the W3C as using EBNF as follows.

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

See Also

Try Liquid XML Free and see how we can help you today Free Trial