pivot-xml-report-converter 1.0.3 • Public • Published 8 years ago Convert XML pivot reports to JSON format
Flexmonster utility to convert old XML pivot reports (versions 1.5-2.2) to new JSON format (version 2.3+).
Online version is available on Flexmonser website .
Usage
Simple html page
< script type = " text/javascript " src = " https://code.jquery.com/jquery-2.2.4.min.js " > < / script >
< script type = " text/javascript " src = " js/fm-converter.js " > < / script >
< script type = " text/javascript " >
var xml = ' <config> ' +
' <dataSource type="csv"> ' +
' <filename> https://s3.amazonaws.com/flexmonster/2.3/data/data.csv </filename> ' +
' </dataSource> ' +
' </config> ' ;
var json = fmCovertXmlReport ( xml ) ;
console . log ( json ) ;
</ script >
Npm module
Installation
$ npm install pivot-xml-report-converter
Examples
var converter = require ( ' pivot-xml-report-converter ' ) ;
var xml = ' <config> ' +
' <dataSource type="csv"> ' +
' <filename> https://s3.amazonaws.com/flexmonster/2.3/data/data.csv </filename> ' +
' </dataSource> ' +
' </config> ' ;
var json = converter ( xml ) ;
console . log ( json ) ;
The xml is type of String
.
In index.js
you can find the example with reading a local .XML
file and passing the String
data to the converter.
Versions Version Downloads (Last 7 Days) Tag 1.0.3 2 latest
Version History Version Downloads (Last 7 Days) Published 1.0.3 2 8 years ago 1.0.2 0 8 years ago 1.0.0 0 8 years ago
Package Sidebar Install npm i pivot-xml-report-converter
Downloads Weekly Downloads