Options
All
  • Public
  • Public/Protected
  • All
Menu

Class XMLReader

Provides safe xml read feature.

Hierarchy

  • XMLReader

Index

Methods

Static getAttribute

  • getAttribute(elem: Element, name: string, mandatory?: undefined | true | false): Nullable<string>
  • Parameters

    • elem: Element
    • name: string
    • Optional mandatory: undefined | true | false

    Returns Nullable<string>

Static getAttributeFloat

  • getAttributeFloat(elem: Element, name: string, mandatory?: undefined | true | false): Nullable<number>
  • Parameters

    • elem: Element
    • name: string
    • Optional mandatory: undefined | true | false

    Returns Nullable<number>

Static getAttributeInt

  • getAttributeInt(elem: Element, name: string, mandatory?: undefined | true | false): Nullable<number>
  • Parameters

    • elem: Element
    • name: string
    • Optional mandatory: undefined | true | false

    Returns Nullable<number>

Static getAttributes

  • getAttributes(elem: Element, ns?: undefined | string): object
  • Parameters

    • elem: Element
    • Optional ns: undefined | string

    Returns object

    • [key: string]: string

Static getChildElements

  • getChildElements(elem: Element): Element[]

Static getElements

  • getElements(elem: Element, name: string): Element[]

Static getSingleElement

  • getSingleElement(elem: Element, name: string, mandatory?: undefined | true | false): Nullable<Element>
  • Parameters

    • elem: Element
    • name: string
    • Optional mandatory: undefined | true | false

    Returns Nullable<Element>

Static parseXML

  • parseXML(doc: string, rootElementName?: undefined | string): Element[]
  • Parameters

    • doc: string
    • Optional rootElementName: undefined | string

    Returns Element[]

Generated using TypeDoc