XML to JavaScript object converter in Node using node-xml2js

Welcome folks I am back with another blog post. In this post we will be talking about how to convert XML to Javascript Objects easily. So let’s get started with the post.

 

Introduction

 

Simple XML to JavaScript object converter. It supports bi-directional conversion. Uses sax-js and xmlbuilder-js.

 

Installation

 

Simplest way to install xml2js is to use npm, just npm install xml2js which will download xml2js and all dependencies.

xml2js is also available via Bower, just bower install xml2js which will download xml2js and all dependencies.

Usage

 

 

 

Promise usage

 

Leave a Reply