Miss any of our Open RFC calls?Watch the recordings here! »

pojo2xml

1.7.2 • Public • Published

pojo2xml

Convert Javascript objects to XML strings. Fast.

Installation

npm

npm install pojo2xml

yarn

yarn add pojo2xml

Usage

var pojo2xml = require('pojo2xml');
var xmlString = pojo2xml(yourJavascriptObjectHere);

Not currently supported

  • XML declaration (e.g. <?xml version="1.0"?>)
  • an explicit root node - if the root JS object has more than one property, multiple root elements will be included in the XML
  • CDATA
  • XML attributes

Install

npm i pojo2xml

DownloadsWeekly Downloads

51

Version

1.7.2

License

ISC

Unpacked Size

7.43 kB

Total Files

10

Last publish

Collaborators

  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar
  • avatar