Each node created by xmlbuilder2
is a DOM node. If required, DOM interfaces can be accessed with the node
property of the builder object. For example:
const { create } = require('xmlbuilder2');
const child = create().ele('root').ele('child');
const tagName = child.node.tagName;
The node
property exposes the DOM Node interface.