views:

45

answers:

1

I am doing some server side coding with JavaScript (node.js) and I would like to write valid xml.

I found two libs, but I am sure there are more/better!?

Requirements: open source (for commercial usage)

Would be cool if the project is fast, small and simple to use (in that order). And I would like to have a bit lower level access ala

doc.addElement('xy').addAttr('name', 'bob');
+1  A: 

There are a number of XML libraries for node.js listed at http://github.com/ry/node/wiki/modules#parsers-xml

If memory serves, the one that has the most traction is http://github.com/polotek/libxmljs, which appears to be MIT licensed.

alunny
thanks a lot! The only writer (not parser) is indeed: http://github.com/polotek/libxmljs/wiki or did I misread sth!?
Karussell