Skip to content

Commit

Permalink
Add note about import (#79)
Browse files Browse the repository at this point in the history
Fixes #75
  • Loading branch information
ajmas committed Jul 1, 2020
1 parent a35ef49 commit d7fec3b
Showing 1 changed file with 7 additions and 0 deletions.
7 changes: 7 additions & 0 deletions readme.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,6 +36,13 @@ console.info(doc)
const nsAttr = doc.documentElement.getAttributeNS('./lite', 'x')
console.info(nsAttr)
```

Note: in Typescript and ES6 you can use the import approach, as follows:

```javascript
import { DOMParser } from 'xmldom'
```

API Reference
=====

Expand Down

0 comments on commit d7fec3b

Please sign in to comment.