Table of Contents

Property XhtmlSyntax

Namespace
DocWright.Formats.Html
Assembly
DocWright.Formats.Html.dll

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

bool

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.