set
Changes builder options. See builder options for the options argument.
set(options
: object)
options
: object)options
- builder options
node (property)
Returns the DOM node wrapped by xmlbuilder2
.
Warning:
node
is a property; not a function.node
const { create } = require('xmlbuilder2');
const ele = create().ele('http:/example.com', 'root');
console.log(ele.node.namespaceURI); // 'http:/example.com'