LeafTextNodesOnNewline

XmlFormatOptions.LeafTextNodesOnNewline property

When enabled, leaf text nodes (textual content inside XML elements, that has no children) will be rendered on a new line with bigger left indent. By default is false (disabled) — leaf text nodes are placed on the same line as their parents, without new indent.

public bool LeafTextNodesOnNewline { get; set; }

See Also