https://github.com/clitetailor/simple-xml-parser
A simple XML parser in NodeJS
https://github.com/clitetailor/simple-xml-parser
nodejs parser tokenizer xml
Last synced: about 2 months ago
JSON representation
A simple XML parser in NodeJS
- Host: GitHub
- URL: https://github.com/clitetailor/simple-xml-parser
- Owner: clitetailor
- Created: 2017-06-27T04:58:16.000Z (about 9 years ago)
- Default Branch: master
- Last Pushed: 2017-06-29T16:44:09.000Z (almost 9 years ago)
- Last Synced: 2025-04-02T23:17:21.961Z (about 1 year ago)
- Topics: nodejs, parser, tokenizer, xml
- Language: JavaScript
- Homepage:
- Size: 2.6 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Simple XML Parser
=================
> A simple xml parser in NodeJS.
Prerequisite
------------
- NodeJS (version: >= 6)
Installation
------------
```bash
git clone https://github.com/clitetailor/simple-xml-parser.git
cd ./simple-xml-parser
npm i
```
Demo
----
Run the following command to convert sample `./mondial-3.0.xml` to `./mondial-3.0.json`:
```bash
npm start
```
Usage
-----
To convert a or a list of XML files to JSON, run the following command:
```bash
node ./index.js
```
To convert back to XML from the JSON file, run the following command:
```bash
node ./js-xml.js