Compiles and works on Ubuntu under XML (with some invalid characters not
being replaced) and HTML. JSON support will be forthcoming.