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 |
|---|---|
QuoteType |
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.
|
boolean |
getFixIncorrectStructure()
Allows to enable or disable mechanism for fixing corrupted XML structure.
|
XmlFormatOptions |
getFormatOptions()
Allows to adjust the XML formatting, that will be applied to the XML structure, when it is represented in HTML.
|
XmlHighlightOptions |
getHighlightOptions()
Allows to adjust the XML 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(QuoteType 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 |
setFixIncorrectStructure(boolean value)
Allows to enable or disable mechanism for fixing corrupted XML structure.
|
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 QuoteType 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 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.
public final XmlFormatOptions getFormatOptions()
Allows to adjust the XML formatting, that will be applied to the XML structure, when it is represented in HTML. Default formatting is used and is adjustable. Cannot be null.
public final XmlHighlightOptions getHighlightOptions()
Allows to adjust the XML highlighting, that will be applied to the XML structure, when it is represented in HTML. Default highlighting is used and is adjustable. Cannot be null.
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(QuoteType 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 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.
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 © 2024. All rights reserved.