"Fossies" - the Fresh Open Source Software Archive

Member "Atom/resources/app/apm/node_modules/xmldom/readme.md" (17 Oct 2016, 6313 Bytes) of archive /windows/misc/atom-windows.zip:

As a special service "Fossies" has tried to format the requested source page into HTML format (assuming markdown format). Alternatively you can here view or download the uninterpreted source code file. A member file download can also be achieved by clicking within a package contents listing on the according byte size field.

XMLDOM Build Status Coverage Status NPM version

A JavaScript implementation of W3C DOM for Node.js, Rhino and the browser. Fully compatible with W3C DOM level2; and some compatible with level3. Supports DOMParser and XMLSerializer interface such as in browser.


npm install xmldom


javascript var DOMParser = require('xmldom').DOMParser; var doc = new DOMParser().parseFromString( '<xml xmlns="a" xmlns:c="./lite">\n'+ '\t<child>test</child>\n'+ '\t<child></child>\n'+ '\t<child/>\n'+ '</xml>' ,'text/xml'); doc.documentElement.setAttribute('x','y'); doc.documentElement.setAttributeNS('./lite','c:x','y2'); var nsAttr = doc.documentElement.getAttributeNS('./lite','x') console.info(nsAttr) console.info(doc)

API Reference

DOM level 3 support:

DOM extension by xmldom