set

Changes builder options. See builder options for the options argument.

set(options: object)


  • options - builder options

node (property)

Returns the DOM node wrapped by xmlbuilder2.

node


const { create } = require('xmlbuilder2');

const ele = create().ele('http:/example.com', 'root');
console.log(ele.node.namespaceURI); // 'http:/example.com'