oozcitak / xmlbuilder-js

An XML builder for node.js
MIT License
918 stars 107 forks source link

create function should not validate version to 1.* #216

Closed paulsjohnson91 closed 5 years ago

paulsjohnson91 commented 5 years ago

Example code ` var builder = require('xmlbuilder');

var xml = builder.create('myroottag', {"version":"6.0"}) .ele('xmlbuilder') .ele('repo', {'type': 'git'}, 'git://github.com/oozcitak/xmlbuilder-js.git') .end({ pretty: true});

console.log(xml); `

This is being rejected as an invalid version however this is not the xml version so should not be forced to be 1.*

paulsjohnson91 commented 5 years ago

can be done with create().att('version','6.0') so closing