Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

simple-xml2json

mayankdedhia1.4kMIT1.2.3

xml to json for Node.js

xml, json, xml to json, xml2json

readme

xml2json Node.js Library

Node.js based version of xml to json

How to use:

Installation:

$ npm install -g simple-xml2json

Title:

var xml2json = require("simple-xml2json");
var xml      = "<xml>hello</xml>";
var json     = xml2json.parser( xml );
console.log( json.xml )

Detailed usage:
http://www.thomasfrank.se/xml_to_json.html

Test:

..\node_modules\node-xml2json\test\node test.js

Major changes:

  • Support for CDATA
  • Support of hyphens in the node names

Contact:

Licensing:

Licensed under MIT