@ellis-project/congress-xml
v0.2.0
Published
Congressional XML to HTML converter
Downloads
4
Readme
@ellis/congress-xml
XML to HTML converter for HouseXML and CatoXML
This is a port of the Python govtrack/congressxml for NodeJS which only depends on a local fork of the elementtree
library with an xml element tail fix.
Installation
npm i @ellis-project/congress-xml
Usage
import fs from 'fs'
import CongressXML from '@ellis-project/congress-xml'
const xml = fs.readFileSync(/* some-test.xml */).toString()
const html = CongressXML.convert_xml(xml)
Enhancements
Planned enhancements include optional XML -> Custom Element tag name mappings.