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:
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?
XMLDOM might be a good choice, it's a W3C Standard based DOMParser and XMLSerializer (DOM Level2 CORE)
good luck
Cloud9 uses node-o3-xml, but I have had a horrible time with it while developing on a Mac. I talked to some folks in the #nodejs IRC room and the prevaling choice seemed to be libxmljs. I've used that myself and it seems to work well, though it's not the W3C DOM API.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With