1.7.2 • Published 7 years ago
pojo2xml v1.7.2
pojo2xml
Convert Javascript objects to XML strings. Fast.
Installation
npm
npm install pojo2xmlyarn
yarn add pojo2xmlUsage
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