@aliem/xmlpredator

predates the alien xml to produce html

Usage no npm install needed!

<script type="module">
  import aliemXmlpredator from 'https://cdn.skypack.dev/@aliem/xmlpredator';
</script>

README

xmlpredator

it hunts down alien xml outputting cheesy html

API

The package exports a single function with signature:

  • String, the XML as string.
  • Object, options.

Options:

  • strict: Boolean, use a strict-mode SAX parser
  • ontext: Function, transform function with a single argument: String, outputs the transformed String.
  • onattribute: Function, transform function with two arguments: key: String, value: String, returns a String

LICENSE

MIT