com.groupdocs.editor.options

Class XmlToHtmlOptions

  • All Implemented Interfaces:
    IDocumentLoadOptions


    public final class XmlToHtmlOptions
    extends Object
    implements IDocumentLoadOptions

    Allows to specify custom options for loading XML (eXtensible Markup Language) documents and converting them to the HTML

    • Constructor Detail

      • XmlToHtmlOptions

        public XmlToHtmlOptions()
    • Method Detail

      • getAttributeValuesQuoteType

        public final Integer getAttributeValuesQuoteType()

        Allows to specify quote type (single or double quotes) for attribute values. Double quotes are default.

      • getEncoding

        public final Charset getEncoding()

        Character encoding of the text document, which will be applied for its opening. By default is null - internal document encoding will be applied.

      • getEncodingInternal

        public com.aspose.ms.System.Text.Encoding getEncodingInternal()
      • getFixIncorrectStructure

        public final boolean getFixIncorrectStructure()

        Allows to enable or disable mechanism for fixing corrupted XML structure. By default is disabled (false).


        By default only proper valid well-formed XML documents are acceptable. When this option is enabled, GroupDocs.Editor will try to fix corrupted XML structure if possible.

      • getFormattingOptions

        public final XmlFormattingOptions getFormattingOptions()

        Allows to enable and adjust the XML formatting, that will be applied to the XML structure, when it is represented in HTML. By default is NULL — XML will be translated to the HTML "as is", without formatting.

      • getHighlightOptions

        public final XmlHighlightOptions getHighlightOptions()

        Allows to adjust the highlighting, that will be applied to the XML structure, when it is represented in HTML. By default is NULL — default highlighting is applied.

      • getRecognizeEmails

        public final boolean getRecognizeEmails()

        Allows to enable recognition algorithm for email addresses in attribute values

      • getRecognizeUris

        public final boolean getRecognizeUris()

        Allows to enable URI recognition algorithm

      • getTrimTrailingWhitespaces

        public final boolean getTrimTrailingWhitespaces()

        Allows to enable the truncation of trailing whitespaces in the inner-tag text. By default is disabled (false) - trailing whitespaces will be preserved.

      • setAttributeValuesQuoteType

        public final void setAttributeValuesQuoteType(Integer value)

        Allows to specify quote type (single or double quotes) for attribute values. Double quotes are default.

      • setEncoding

        public final void setEncoding(Charset value)

        Character encoding of the text document, which will be applied for its opening. By default is null - internal document encoding will be applied.

      • setFixIncorrectStructure

        public final void setFixIncorrectStructure(boolean value)

        Allows to enable or disable mechanism for fixing corrupted XML structure. By default is disabled (false).


        By default only proper valid well-formed XML documents are acceptable. When this option is enabled, GroupDocs.Editor will try to fix corrupted XML structure if possible.

      • setHighlightOptions

        public final void setHighlightOptions(XmlHighlightOptions value)

        Allows to adjust the highlighting, that will be applied to the XML structure, when it is represented in HTML. By default is NULL — default highlighting is applied.

      • setRecognizeEmails

        public final void setRecognizeEmails(boolean value)

        Allows to enable recognition algorithm for email addresses in attribute values

      • setRecognizeUris

        public final void setRecognizeUris(boolean value)

        Allows to enable URI recognition algorithm

      • setTrimTrailingWhitespaces

        public final void setTrimTrailingWhitespaces(boolean value)

        Allows to enable the truncation of trailing whitespaces in the inner-tag text. By default is disabled (false) - trailing whitespaces will be preserved.