xmlToJsonTs

Converts a xml string into JSON

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
xmlToJsonTs
1.0.06 years ago6 years agoMinified + gzip package size for xmlToJsonTs in KB

Readme

xmlToJsonTs
Parsing a XML string into JSON using Typescript.

Sample

import { XmlParser, IParserConfiguration } from 'xmlToJsonTs';

let config = <IParserConfiguration> { };
config.removeLineBreaks = true;
config.removeComments = true;
config.transformTextOnly = true;

let parser = new XmlParser();
let json = parser.toJson('<YourXmlString></YourXmlString>', config);
console.log(json);