com.groupdocs.editor.options

Class XmlFormattingOptions

  • All Implemented Interfaces:
    IDocumentLoadOptions


    public final class XmlFormattingOptions
    extends Object
    implements IDocumentLoadOptions

    Contains options, that allow to adjust the formatting of XML document, when it is represented as HTML

    • Constructor Detail

      • XmlFormattingOptions

        public XmlFormattingOptions()
    • Method Detail

      • getEachAttributeFromNewline

        public final boolean getEachAttributeFromNewline()

        When enabled, each and every pair of attribute-value in every XML element will be placed on a new line. By default is false (disabled) — all attribute-value pairs of are placed in a single line.

      • getLeafTextNodesOnNewline

        public final boolean getLeafTextNodesOnNewline()

        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.

      • getLeftIndent

        public final Length getLeftIndent()

        Allows to specify an offset for the left indent of every new line. Cannot be a unitless non-zero value.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException
      • setEachAttributeFromNewline

        public final void setEachAttributeFromNewline(boolean value)

        When enabled, each and every pair of attribute-value in every XML element will be placed on a new line. By default is false (disabled) — all attribute-value pairs of are placed in a single line.

      • setLeafTextNodesOnNewline

        public final void setLeafTextNodesOnNewline(boolean value)

        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.

      • setLeftIndent

        public final void setLeftIndent(Length value)

        Allows to specify an offset for the left indent of every new line. Cannot be a unitless non-zero value.

        Throws:
        com.aspose.ms.System.ArgumentOutOfRangeException