# @types/xmldom

> TypeScript definitions for xmldom

Latest version **0.1.34** (published 2023-11-07) · MIT license · 0 weekly downloads

## Install

```sh
npm install @types/xmldom
pnpm add @types/xmldom
yarn add @types/xmldom
bun add @types/xmldom
```

## Health

**Score 45/100 (D)** — status: abandoned.

Positive: has types; no vulnerabilities; high maintenance score; popular repo; extremely popular.

Warnings: low downloads; no esm support; pre 1.0.

Negative: abandoned.

## Facts

| | |
|---|---|
| Version | 0.1.34 |
| Published | 2023-11-07 |
| First published | 2016-05-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 4.7 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 51427 |
| Maintainers | types |

## Links

- npm: https://www.npmjs.com/package/@types/xmldom
- Repository: https://github.com/DefinitelyTyped/DefinitelyTyped
- Homepage: https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldom
- npm.io page: https://npm.io/package/@types/xmldom

## Recent versions

- 0.1.34 (latest) — 2023-11-07
- 0.1.32 (ts4.3) — 2023-08-30
- 0.1.31 (ts3.6) — 2021-07-02
- 0.1.30 (ts3.0) — 2020-07-06
- 0.1.29 (ts2.0) — 2017-03-15
- 0.1.33 — 2023-10-18
- 0.1.28 — 2016-09-19
- 0.1.27 — 2016-07-14
- 0.1.26-alpha — 2016-07-08
- 0.1.25-alpha — 2016-07-04
- 0.1.24-alpha — 2016-07-02
- 0.1.23-alpha — 2016-07-02
- 0.1.22-alpha — 2016-07-01
- 0.1.21-alpha — 2016-05-25
- 0.1.20-alpha — 2016-05-20
- … 2 more at https://npm.io/package/@types/xmldom/versions

## README

# Installation
> `npm install --save @types/xmldom`

# Summary
This package contains type definitions for xmldom (https://github.com/xmldom/xmldom).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldom.
## [index.d.ts](https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/xmldom/index.d.ts)
````ts
/// <reference lib="dom" />

declare namespace xmldom {
    var DOMParser: DOMParserStatic;
    var XMLSerializer: XMLSerializerStatic;
    var DOMImplementation: DOMImplementationStatic;

    interface DOMImplementationStatic {
        new(): DOMImplementation;
    }

    interface DOMParserStatic {
        new(): DOMParser;
        new(options: Options): DOMParser;
    }

    interface XMLSerializerStatic {
        new(): XMLSerializer;
    }

    interface DOMParser {
        parseFromString(xmlsource: string, mimeType?: string): Document;
    }

    interface XMLSerializer {
        serializeToString(node: Node): string;
    }

    interface Options {
        locator?: any;
        errorHandler?: ErrorHandlerFunction | ErrorHandlerObject | undefined;
    }

    interface ErrorHandlerFunction {
        (level: string, msg: any): any;
    }

    interface ErrorHandlerObject {
        warning?: ((msg: any) => any) | undefined;
        error?: ((msg: any) => any) | undefined;
        fatalError?: ((msg: any) => any) | undefined;
    }
}

export = xmldom;

````

### Additional Details
 * Last updated: Tue, 07 Nov 2023 15:11:36 GMT
 * Dependencies: none

# Credits
These definitions were written by [Qubo](https://github.com/tkqubo), and [Karfau](https://github.com/karfau).

---
_Source: https://npm.io/package/@types/xmldom · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
