Skip to content

Latest commit

 

History

History
17 lines (15 loc) · 529 Bytes

dom-interfaces.md

File metadata and controls

17 lines (15 loc) · 529 Bytes
title keywords sidebar permalink toc comments
DOM Interfaces
dom interface
api_sidebar
dom-interfaces.html
false
false

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.