Options
All
  • Public
  • Public/Protected
  • All
Menu

Class Parser

Hierarchy

  • Parser

Index

Constructors

constructor

  • new Parser(__namedParameters?: { DOMParser: { constructor: any; prototype: DOMParser }; fetch: fetch }): Parser

Properties

Private Readonly DOMParser

DOMParser: typeof DefaultDOMParser

Private Readonly fetch

fetch: typeof defaultFetch

Methods

Private checkDocument

  • checkDocument(document: Document): Document

load

  • load(url: string): Promise<Document>

parse

  • parse(resource: string): Promise<Document>
  • Parameters

    • resource: string

    Returns Promise<Document>

parseFromString

  • parseFromString(xml: string): Document

Generated using TypeDoc