1.0.1 • Published 6 months ago
alto-xml v1.0.1
ALTO.js
JavaScript API to access ALTO XML documents in Node.js or in the browser.
Installation
$ npm install alto-xml
Usage
In Node.js, please specify which XML parser to use. For example:
import { configure, Document } from 'alto-xml'
import { JSDOM } from 'jsdom'
let { DOMParser, XMLSerializer } = new JSDOM().window
configure(DOMParser, XMLSerializer)
let doc = Document.parse(ALTO_DATA)
License
ALTO.js is licensed under the terms of the AGPL-3.0 license.