This is a playground
to test code. It runs a full Node.js
environment and already has all of npm
’s 1,000,000+ packages pre-installed, including doodad-js-xml
with all npm
packages installed. Try it out:
"use strict";
require('sax'); // Force load
const modules = {};
require('doodad-js-io').add(modules);
require('doodad-js-xml').add(modules);
require('doodad-js').createRoot(modules)
.then(root => {
const xml = root.Doodad.Tools.Xml;
// NOTE: Random songs
return xml.parse("<songs><song><title>Another Me In Lack'ech</title><artist>Epica</artist></song><song><title>Silent Lucidity</title><artist>Queensryche</artist></song><song><title>One</title><artist>Metallica</artist></song></songs>");
})
.then(doc => {
console.log(doc);
})
.catch(err => {
console.error(err);
});
This service is provided by RunKit and is not affiliated with npm, Inc or the package authors.