browserify-xml

Module for converting xml into a an html element that can be displayed and human readable in a browser.

Usage no npm install needed!

<script type="module">
  import browserifyXml from 'https://cdn.skypack.dev/browserify-xml';
</script>

README

browserify-xml

This is a simple node module for rendering browserified xml. It doesn't have many features so far. It just converts an xml v1.0 string into html that may be rendered and displayed in a browser.

Documentation

Installation

npm install --save browserify-xml

Usage

const browserify = require('browserify-xml');

const htmlMarkup = browserify('<myElement>some content here</myElement><elements><myelement>one</myelement><myelement>two</myelement></elements>');

The value of htmlMarkup will be an html string that renders human readable xml when it is interpreted by a browser.