Is there a good way to create XML files? For example, like the Builder for Rails (or any other way)?
Thanks
recent changes to xmlbuilder require root element name passed to create()
see working example
var builder = require('xmlbuilder');
var doc = builder.create('root')
.ele('xmlbuilder')
.att('for', 'node-js')
.ele('repo')
.att('type', 'git')
.txt('git://github.com/oozcitak/xmlbuilder-js.git')
.up()
.up()
.ele('test')
.txt('complete')
.end({ pretty: true });
console.log(doc.toString());