Class: Parser
Constructorsβ
constructorβ
β’ new Parser(Β«destructuredΒ»?
)
Parametersβ
Name | Type |
---|---|
Β«destructuredΒ» | IParserOptions |
Defined inβ
Propertiesβ
fetchβ
β’ Private
Readonly
fetch: (input
: RequestInfo
| URL
, init?
: RequestInit
) => Promise
<Response
>
Type declarationβ
βΈ (input
, init?
): Promise
<Response
>
Parametersβ
Name | Type |
---|---|
input | RequestInfo | URL |
init? | RequestInit |
Returnsβ
Promise
<Response
>
Defined inβ
DOMParserβ
β’ Private
Readonly
DOMParser: () => DOMParser
Type declarationβ
β’ new DOMParser(): DOMParser
Returnsβ
DOMParser
Defined inβ
Methodsβ
parseβ
βΈ parse(resource
): Promise
<Document
>
Parametersβ
Name | Type |
---|---|
resource | string |
Returnsβ
Promise
<Document
>
Defined inβ
parseFromStringβ
βΈ parseFromString(xml
): Document
Parametersβ
Name | Type |
---|---|
xml | string |
Returnsβ
Document
Defined inβ
checkDocumentβ
βΈ Private
checkDocument(document
): Document
Parametersβ
Name | Type |
---|---|
document | Document |
Returnsβ
Document
Defined inβ
loadβ
βΈ load(url
): Promise
<Document
>
Parametersβ
Name | Type |
---|---|
url | string |
Returnsβ
Promise
<Document
>