Skip to content

Webstrates/jsonml-tools

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

17 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jsonml-tools

jsonml-tools is a super light weight library for converting JsonML to XML. It follows the syntax defined here.

Usage

var jsonml = require("jsonml-tools");
var xml = jsonml.toXML(["foo", ["bar", "baz"]]);

Per default jsonml-tools self closes tags. Add a list of tags to selfclose to toXML to white list tags for self close. Add an empty list to disable selfclose.

var xml = jsonml.toXML(["foo", ["bar"], ["baz"]], ["bar"]); 
//Results in <foo><bar/><baz></baz></foo>

License

This work is licenced under the Apache License, Version 2.0

About

Lightweight node.js library for converting JsonML to XML

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published