public interface IXMLWriterSettings extends Serializable
@Nonnull EXMLVersion getXMLVersion()
1.0@Nonnull EXMLSerializeVersion getSerializeVersion()
XML 1.0@Nonnull EXMLSerializeXMLDeclaration getSerializeXMLDeclaration()
true.boolean isNewLineAfterXMLDeclaration()
true if a newline should be added after the XML
declaration or not. Defaults to true.@Nonnull EXMLSerializeDocType getSerializeDocType()
true.@Nonnull EXMLSerializeComments getSerializeComments()
true.@Nonnull EXMLSerializeIndent getIndent()
indent and aligned.@Nonnull IXMLIndentDeterminator getIndentDeterminator()
null.@Nonnull EXMLIncorrectCharacterHandling getIncorrectCharacterHandling()
null.@Nonnull INamespaceContext getNamespaceContext()
null.boolean isUseDoubleQuotesForAttributes()
true if attribute values should be enclosed in double
quotes, false if single quotes should be used.@Nonnull IXMLBracketModeDeterminator getBracketModeDeterminator()
null
.boolean isSpaceOnSelfClosedElement()
<br />) or not (
<br/>)true if a space should be emitted, false
if no space should be emitted.@Nonnull com.helger.commons.system.ENewLineMode getNewLineMode()
null.@Nonnull @Nonempty default String getNewLineString()
getNewLineMode ().getText().@Nonnull @Nonempty String getIndentationString()
boolean isEmitNamespaces()
true if namespaces should be emitted,
false if all created elements should reside in the
default namespace.boolean isPutNamespaceContextPrefixesInRoot()
IIterableNamespaceContext interface!true if it is enabled, false if not.boolean isWriteCDATAAsText()
true if CDATA should be written as text,
false to keep CDATA as it is.boolean isOrderAttributesAndNamespaces()
true to order attributes, false to keep
the original order.Copyright © 2014–2019 Philip Helger. All rights reserved.