class BuilderOptions extends Object
NodeJS/xml2js Builder Options
- Annotations
- @RawJSType() @ScalaJSDefined()
- Alphabetic
- By Inheritance
- BuilderOptions
- Object
- Any
- AnyRef
- Any
- Hide All
- Show All
- Public
- All
Instance Constructors
-
new
BuilderOptions(rootName: UndefOr[String] = js.undefined, renderOpts: UndefOr[RenderOptions] = js.undefined, indent: UndefOr[String] = js.undefined, xmldec: UndefOr[XmlDeclarationOptions] = js.undefined, newline: UndefOr[String] = js.undefined, doctype: UndefOr[String] = js.undefined, headless: UndefOr[Boolean] = js.undefined, allowSurrogateChars: UndefOr[Boolean] = js.undefined, cdata: UndefOr[Boolean] = js.undefined)
- rootName
Root element name to be used in case explicitRoot is false or to override the root element name. (default root or the root key name)
- renderOpts
Rendering options for xmlbuilder-js.pretty: prettify generated XML. (default { 'pretty': true, 'indent': ' ', 'newline': '\n' })
- indent
Whitespace for indentation (only when pretty)
- xmldec
XML declaration attributes (default { 'version': '1.0', 'encoding': 'UTF-8', 'standalone': true }). xmldec.version - A version number string, e.g. 1.0 xmldec.encoding - Encoding declaration, e.g. UTF-8 xmldec.standalone - Standalone document declaration: true or false
- newline
Newline char (only when pretty)
- doctype
Optional DTD. Eg. {'ext': 'hello.dtd'} (default null)
- headless
Omit the XML header. Added in 0.4.3 (default: false)
- allowSurrogateChars
Allows using characters from the Unicode surrogate blocks (default: false)
- cdata
Wrap text nodes in
<![CDATA[ ... ]]>
Does not add
<![CDATA[ ... ]]>
Value Members
-
final
def
!=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
final
def
##(): Int
- Definition Classes
- AnyRef → Any
-
final
def
==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- var allowSurrogateChars: UndefOr[Boolean]
-
final
def
asInstanceOf[T0]: T0
- Definition Classes
- Any
- var cdata: UndefOr[Boolean]
-
def
clone(): AnyRef
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var doctype: UndefOr[String]
-
final
def
eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
-
def
equals(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
-
def
finalize(): Unit
- Attributes
- protected[java.lang]
- Definition Classes
- AnyRef
- Annotations
- @throws( classOf[java.lang.Throwable] )
-
final
def
getClass(): Class[_]
- Definition Classes
- AnyRef → Any
-
def
hasOwnProperty(v: String): Boolean
- Definition Classes
- Object
-
def
hashCode(): Int
- Definition Classes
- AnyRef → Any
- var headless: UndefOr[Boolean]
- var indent: UndefOr[String]
-
final
def
isInstanceOf[T0]: Boolean
- Definition Classes
- Any
-
def
isPrototypeOf(v: Object): Boolean
- Definition Classes
- Object
-
final
def
ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- var newline: UndefOr[String]
-
final
def
notify(): Unit
- Definition Classes
- AnyRef
-
final
def
notifyAll(): Unit
- Definition Classes
- AnyRef
-
def
propertyIsEnumerable(v: String): Boolean
- Definition Classes
- Object
- var renderOpts: UndefOr[RenderOptions]
- var rootName: UndefOr[String]
-
final
def
synchronized[T0](arg0: ⇒ T0): T0
- Definition Classes
- AnyRef
-
def
toLocaleString(): String
- Definition Classes
- Object
-
def
toString(): String
- Definition Classes
- AnyRef → Any
-
def
valueOf(): Any
- Definition Classes
- Object
-
final
def
wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
-
final
def
wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws( ... )
- var xmldec: UndefOr[XmlDeclarationOptions]