Convert Javascript objects to XML strings. Fast.
npm install pojo2xml
yarn add pojo2xml
var pojo2xml = require('pojo2xml');
var xmlString = pojo2xml(yourJavascriptObjectHere);
- 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