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

Dependencies (0)

    Dev Dependencies (5)

    Package Sidebar

    Install

    npm i pojo2xml

    Weekly Downloads

    328

    Version

    1.7.2

    License

    ISC

    Unpacked Size

    7.43 kB

    Total Files

    10

    Last publish

    Collaborators

    • derickl
    • inromualdo
    • ernestoteo
    • medic-ci
    • craig_modules
    • njuguna-medic
    • garethbowen
    • hgalemayehu
    • abbyad
    • twd
    • kennsippell
    • scdf
    • alxndrsn