{"id":26708439,"url":"https://github.com/flexmonster/pivot-xml-report-converter","last_synced_at":"2025-04-13T16:22:24.293Z","repository":{"id":57324961,"uuid":"74023265","full_name":"flexmonster/pivot-xml-report-converter","owner":"flexmonster","description":"Convert XML Flexmonster reports to JSON format","archived":false,"fork":false,"pushed_at":"2023-08-16T19:49:55.000Z","size":37,"stargazers_count":6,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-05T02:01:47.954Z","etag":null,"topics":["json","json-format","report","reporting","xml","xml-pivot-reports"],"latest_commit_sha":null,"homepage":"http://flexmonster.com","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/flexmonster.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-11-17T12:05:25.000Z","updated_at":"2023-06-16T18:34:44.000Z","dependencies_parsed_at":"2023-01-30T18:31:19.129Z","dependency_job_id":null,"html_url":"https://github.com/flexmonster/pivot-xml-report-converter","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexmonster%2Fpivot-xml-report-converter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexmonster%2Fpivot-xml-report-converter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexmonster%2Fpivot-xml-report-converter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/flexmonster%2Fpivot-xml-report-converter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/flexmonster","download_url":"https://codeload.github.com/flexmonster/pivot-xml-report-converter/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248741850,"owners_count":21154389,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["json","json-format","report","reporting","xml","xml-pivot-reports"],"created_at":"2025-03-27T07:18:23.546Z","updated_at":"2025-04-13T16:22:24.273Z","avatar_url":"https://github.com/flexmonster.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# XML-to-JSON report converter\n[![Flexmonster Pivot Table \u0026 Charts](https://www.flexmonster.com/fm_uploads/2020/06/GitHub_fm.png)](https://www.flexmonster.com/?r=github)\nWebsite: [www.flexmonster.com](https://www.flexmonster.com/?r=github)\n\n## Flexmonster Pivot Table \u0026 Charts\nFlexmonster Pivot is a powerful JavaScript tool for interactive web reporting. It allows you to visualize and analyze data from JSON, CSV, SQL, NoSQL, Elasticsearch, and OLAP data sources fast and conveniently. Flexmonster is designed to integrate seamlessly with any client-side framework and can be easily embedded into your application.\n\nThis repository contains the utility for converting Flexmonster reports from old XML format (versions 1.5 through 2.2) to JSON format (version 2.3 and later).\nYou can also use the online version of the converter, which is [available on our website](https://www.flexmonster.com/convert-xml-report/?r=github).\n\nTable of contents:\n\n- [Installation and usage](#installation-and-usage)\n    - [GitHub package](#github-package)\n    - [npm module](#npm-module)\n\n## Installation and usage\n\n### GitHub package\n\n1. Download a `.zip` archive with the converter or clone it from GitHub with the following command:\n\n```bash\ngit clone https://github.com/flexmonster/pivot-xml-report-converter.git\n```\n\nThe converter is located in the `js/` folder.\n\n2. Use the converter in your project. It can be done as follows:\n\n```html\n\u003cscript type=\"text/javascript\" src=\"https://code.jquery.com/jquery-2.2.4.min.js\"\u003e\u003c/script\u003e\n\u003c!-- Include the converter in your HTML page --\u003e\n\u003cscript type=\"text/javascript\" src=\"pivot-xml-report-converter/js/fm-converter.js\"\u003e\u003c/script\u003e\n\u003cscript type=\"text/javascript\"\u003e\nconst xmlReport = '\u003cconfig\u003e' +\n                    '\u003cdataSource type=\"csv\"\u003e' +\n                      '\u003cfilename\u003ehttps://cdn.flexmonster.com/data/data.csv\u003c/filename\u003e' +\n                    '\u003c/dataSource\u003e' +\n                  '\u003c/config\u003e';\nlet jsonReport = fmCovertXmlReport(xmlReport);\nconsole.log(jsonReport);\n\u003c/script\u003e\n```\n\nNote that the `xmlReport` should have the `String` type. In the `index.js` file, you can find an example of reading a local `.xml` file and passing the `String` data to the converter.\n\n### npm module \n\n1. Install the converter with the following npm command:\n\n```bash\nnpm install pivot-xml-report-converter\n```\n\n2. Use the converter in your project. It can be done as follows:\n\n```js\nlet converter = require('pivot-xml-report-converter');\nconst xmlReport = '\u003cconfig\u003e' +\n                    '\u003cdataSource type=\"csv\"\u003e' +\n                      '\u003cfilename\u003ehttps://cdn.flexmonster.com/data/data.csv\u003c/filename\u003e' +\n                    '\u003c/dataSource\u003e' +\n                  '\u003c/config\u003e';\nlet jsonReport = converter(xmlReport);\nconsole.log(jsonReport);\n```\n\nNote that the `xmlReport` should have the `String` type. In the `index.js` file, you can find an example of reading a local `.xml` file and passing the `String` data to the converter.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexmonster%2Fpivot-xml-report-converter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fflexmonster%2Fpivot-xml-report-converter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fflexmonster%2Fpivot-xml-report-converter/lists"}