Property XhtmlSyntax
XhtmlSyntax
Gets or sets a value indicating whether output is XHTML rather than HTML: void elements self-close, the root carries the XHTML namespace, and the doctype is omitted.
public bool XhtmlSyntax { get; set; }
Property Value
Remarks
This exists for EPUB, whose content documents must be XML-well-formed. Emitting it from the same writer keeps one escaping and one element-emission path, which is the whole reason a second writer was not worth having.