craydent-xml-to-json
Version:
Node module to parse xml into json
27 lines (24 loc) • 833 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports._xmlToJson = _xmlToJson;
const __common_1 = require("./private/__common");
if (typeof global == 'undefined') {
window.global = window;
}
__common_1.scope.eval = str => eval(str);
//#region dependencies
const xmlToJson = require('./protected/_xmltojson').default;
//#endregion
function _xmlToJson(ignoreAttributes) {
/*|{
"info": "Converts XML to JSON",
"category": "XML to JSON",
"parameters":[
{"xml": "(String|XMLDOM) XML string or XML DOM"},
{"ignoreAttributes?": "(Bool) Flag to ignore attributes"}],
"overloads":[],
"url": "http://www.craydent.com/library/1.9.3/docs#xmlToJson",
"returnType": "(Object)"
}|*/
return xmlToJson(this, ignoreAttributes);
}