Options
All
  • Public
  • Public/Protected
  • All
Menu

Interface XmlWriter

Hierarchy

  • XmlWriter

Index

Methods

closeAll

  • closeAll(): void
  • closes all open tags and ends the document

    Returns void

closeTag

  • closeTag(name: string): void
  • closes an open XML tag.

    Parameters

    • name: string

    Returns void

indent

  • indent(str: string): string
  • Parameters

    • str: string

    Returns string

inlineTag

  • inlineTag(name: string, attrs?: any, content?: undefined | string): void
  • writes a tag and its value opening and closing it at the same time

    Parameters

    • name: string
    • Optional attrs: any
    • Optional content: undefined | string

    Returns void

openTag

  • openTag(name: string, attrs?: any): void
  • writes the opening XML tag with the supplied attributes

    Parameters

    • name: string
    • Optional attrs: any

    Returns void