public final class XmlEditOptions extends Object implements IEditOptions
Allows to specify custom options for loading XML (eXtensible Markup Language) documents and converting them to the HTML
Constructor and Description |
---|
XmlEditOptions() |
Modifier and Type | Method and Description |
---|---|
Integer |
getAttributeValuesQuoteType()
Allows to specify quote type (single or double quotes) for attribute
values.
|
Charset |
getEncoding()
Character encoding of the text document, which will be applied for its
opening.
|
com.aspose.ms.System.Text.Encoding |
getEncodingInternal() |
boolean |
getFixIncorrectStructure()
Allows to enable or disable mechanism for fixing corrupted XML structure.
|
com.groupdocs.editor.options.XmlFormattingOptions |
getFormattingOptions()
Allows to enable and adjust the XML formatting, that will be applied to
the XML structure, when it is represented in HTML.
|
XmlHighlightOptions |
getHighlightOptions()
Allows to adjust the highlighting, that will be applied to the XML
structure, when it is represented in HTML.
|
boolean |
getRecognizeEmails()
Allows to enable recognition algorithm for email addresses in attribute
values
|
boolean |
getRecognizeUris()
Allows to enable URI recognition algorithm
|
boolean |
getTrimTrailingWhitespaces()
Allows to enable the truncation of trailing whitespaces in the inner-tag
text.
|
void |
setAttributeValuesQuoteType(Integer value)
Allows to specify quote type (single or double quotes) for attribute
values.
|
void |
setEncoding(Charset value)
Character encoding of the text document, which will be applied for its
opening.
|
void |
setEncodingInternal(com.aspose.ms.System.Text.Encoding value) |
void |
setFixIncorrectStructure(boolean value)
Allows to enable or disable mechanism for fixing corrupted XML structure.
|
void |
setFormattingOptions(com.groupdocs.editor.options.XmlFormattingOptions value)
Allows to enable and adjust the XML formatting, that will be applied to
the XML structure, when it is represented in HTML.
|
void |
setHighlightOptions(XmlHighlightOptions value)
Allows to adjust the highlighting, that will be applied to the XML
structure, when it is represented in HTML.
|
void |
setRecognizeEmails(boolean value)
Allows to enable recognition algorithm for email addresses in attribute
values
|
void |
setRecognizeUris(boolean value)
Allows to enable URI recognition algorithm
|
void |
setTrimTrailingWhitespaces(boolean value)
Allows to enable the truncation of trailing whitespaces in the inner-tag
text.
|
public final Integer getAttributeValuesQuoteType()
Allows to specify quote type (single or double quotes) for attribute values. Double quotes are default.
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.
public com.aspose.ms.System.Text.Encoding getEncodingInternal()
public final boolean getFixIncorrectStructure()
Allows to enable or disable mechanism for fixing corrupted XML structure. By default is disabled (false).
public final com.groupdocs.editor.options.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.
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.
public final boolean getRecognizeEmails()
Allows to enable recognition algorithm for email addresses in attribute values
public final boolean getRecognizeUris()
Allows to enable URI recognition algorithm
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.
public final void setAttributeValuesQuoteType(Integer value)
Allows to specify quote type (single or double quotes) for attribute values. Double quotes are default.
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.
public void setEncodingInternal(com.aspose.ms.System.Text.Encoding value)
public final void setFixIncorrectStructure(boolean value)
Allows to enable or disable mechanism for fixing corrupted XML structure. By default is disabled (false).
public final void setFormattingOptions(com.groupdocs.editor.options.XmlFormattingOptions value)
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.
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.
public final void setRecognizeEmails(boolean value)
Allows to enable recognition algorithm for email addresses in attribute values
public final void setRecognizeUris(boolean value)
Allows to enable URI recognition algorithm
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.
Copyright © 2020. All rights reserved.