I've written some code to manipulate an XML document using standard W3C DOM APIs. It works well in the browser environment, and I'd like to get it to work under node.js. Unfortunately, I have not been able to find a working node.js library implementing standard W3C DOM APIs. Here are the libraries I have tried:
- node-o3-xml - segfaults on parse
- node-o3-fastxml - segfaults on parse
- libxmljs - does not use standard W3C DOM APIs
- jsdom - uses HTML DOM, rather than XML DOM (e.g.
element.tagName
will return the uppercase form, rather than case-sensitive form)
I could write a second implementation, using a different API, to perform the same function, but I'd rather find a library that will expose these standard interfaces, so that I can use the same code in both contexts. Is there a working node.js library that implements the W3C DOM API?