XML
Neither comment, pcdata nor entity check their argument for invalid characters.
XHTML
Typesafe constructors for XHTML 1.1 documents.