Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface IXmlElementOptions

The options used to create a new element.

Hierarchy

  • IXmlElementOptions

Index

Properties

name

name: string

The name of the element.

Optional replaceInvalidCharsInName

replaceInvalidCharsInName?: boolean

Whether to replace any invalid characters in the name of the element with the Unicode replacement character. By default, this is disabled.

Optional useSelfClosingTagIfEmpty

useSelfClosingTagIfEmpty?: boolean

Whether to use a self-closing tag if this element is empty.

For example, use:

<element/>

instead of:

<element></element>

By default, this is enabled.

Generated using TypeDoc