xmlToJsonTs
TypeScript icon, indicating that this package has built-in type declarations

1.0.0 • Public • Published

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);

Package Sidebar

Install

npm i xmlToJsonTs

Weekly Downloads

329

Version

1.0.0

License

MIT

Last publish

Collaborators

  • aaronczichon