Allows to adjust the XML formatting, that will be applied to the XML structure, when it is represented in HTML.
XmlEditOptions()
public XmlEditOptions()
getEncoding()
public final Charset getEncoding()
Character encoding of the text document, which will be applied for its opening. By default is null \u2014 internal document encoding will be applied.
Returns:
java.nio.charset.Charset
setEncoding(Charset value)
public final void setEncoding(Charset value)
Character encoding of the text document, which will be applied for its opening. By default is null \u2014 internal document encoding will be applied.
Parameters:
Parameter
Type
Description
value
java.nio.charset.Charset
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.
Returns:
boolean
setFixIncorrectStructure(boolean value)
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.
Parameters:
Parameter
Type
Description
value
boolean
getRecognizeUris()
public final boolean getRecognizeUris()
Allows to enable URI recognition algorithm
Returns:
boolean
setRecognizeUris(boolean value)
public final void setRecognizeUris(boolean value)
Allows to enable URI recognition algorithm
Parameters:
Parameter
Type
Description
value
boolean
getRecognizeEmails()
public final boolean getRecognizeEmails()
Allows to enable recognition algorithm for email addresses in attribute values
Returns:
boolean
setRecognizeEmails(boolean value)
public final void setRecognizeEmails(boolean value)
Allows to enable recognition algorithm for email addresses in attribute values
Parameters:
Parameter
Type
Description
value
boolean
getTrimTrailingWhitespaces()
public final boolean getTrimTrailingWhitespaces()
Allows to enable the truncation of trailing whitespaces in the inner-tag text. By default is disabled (false) \u2014 trailing whitespaces will be preserved.
Returns:
boolean
setTrimTrailingWhitespaces(boolean value)
public final void setTrimTrailingWhitespaces(boolean value)
Allows to enable the truncation of trailing whitespaces in the inner-tag text. By default is disabled (false) \u2014 trailing whitespaces will be preserved.
Parameters:
Parameter
Type
Description
value
boolean
getAttributeValuesQuoteType()
public final QuoteType getAttributeValuesQuoteType()
Allows to specify quote type (single or double quotes) for attribute values. Double quotes are default.
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.
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.