Options
All
  • Public
  • Public/Protected
  • All
Menu

xmlcreate

Index

Functions

Private allSameLineNodes

  • allSameLineNodes(nodes: XmlNode[]): boolean

Private appendId

  • appendId(type: string, value: string, str: string, options: StringOptions): string
  • Appends the XML string representation of a public or system identifier to an existing string.

    Parameters

    • type: string

      "SYSTEM", "PUBLIC", or "".

    • value: string

      The value of the identifier.

    • str: string

      The string to which the string representation should be appended.

    • options: StringOptions

      Formatting options for the string representation.

    Returns string

    The updated string.

document

  • Creates a new XML document.

    Parameters

    • root: string

      The name of the root element of the document.

    Returns XmlDocument

    The new XML document.

Private escapeAmpersands

  • escapeAmpersands(str: string): string
  • Replaces ampersands (&) with the appropriate XML character reference.

    Parameters

    • str: string

      The string to escape.

    Returns string

    A copy of the specified string with ampersands escaped.

Private escapeDoubleQuotes

  • escapeDoubleQuotes(str: string): string
  • Replaces double quotes (") with the appropriate XML character reference.

    Parameters

    • str: string

      The string to escape.

    Returns string

    A copy of the specified string with double quotes escaped.

Private escapeLeftAngleBrackets

  • escapeLeftAngleBrackets(str: string): string
  • Replaces left angle brackets (<) with the appropriate XML character reference.

    Parameters

    • str: string

      The string to escape.

    Returns string

    A copy of the specified string with left angle brackets escaped.

Private escapeRightAngleBracketsInCdataTerminator

  • escapeRightAngleBracketsInCdataTerminator(str: string): string
  • Replaces right angle brackets (>) with the appropriate XML character reference when part of the string "]]>".

    Parameters

    • str: string

      The string to escape.

    Returns string

    A copy of the specified string with right angle brackets escaped when part of the string "]]>".

Private escapeSingleQuotes

  • escapeSingleQuotes(str: string): string
  • Replaces single quotes (") with the appropriate XML character reference.

    Parameters

    • str: string

      The string to escape.

    Returns string

    A copy of the specified string with single quotes escaped.

Private getCodePoint

  • getCodePoint(str: string, index: number): number
  • Retrieve the Unicode code point at the specified index in the specified string.

    Parameters

    • str: string

      The string from which to retrieve the Unicode code point.

    • index: number

      The specified index.

    Returns number

    The Unicode code point at the specified position.

Private isArray

  • isArray(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private isBoolean

  • isBoolean(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private isInteger

  • isInteger(value: any): boolean
  • Parameters

    • value: any

    Returns boolean

Private isNumber

  • isNumber(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private isObject

  • isObject(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private isString

  • isString(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private isUndefined

  • isUndefined(val: any): boolean
  • Parameters

    • val: any

    Returns boolean

Private onSameLine

Private validateChar

  • validateChar(str: string): boolean
  • Verifies that the specified string only contains characters permitted by the XML specification.

    Parameters

    • str: string

      The string to validate.

    Returns boolean

    Whether the specified string only contains characters permitted by the XML specification.

Private validateName

  • validateName(str: string): boolean
  • Verifies that the specified string only contains characters permitted by the XML specification for names.

    Parameters

    • str: string

      The string to validate.

    Returns boolean

    Whether the specified string only contains characters permitted by the XML specification for names.

Private validateSingleChar

  • validateSingleChar(str: string): boolean
  • Verifies that the specified string only contains a single character, and that this character is permitted by the XML specification.

    Parameters

    • str: string

      The string to validate.

    Returns boolean

    Whether the specified string only contains a single character, and that this character is permitted by the XML specification.

Generated using TypeDoc