Package Exports
- xml-js
- xml-js/lib/xml2js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (xml-js) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
Convert XML text to Javascript object (and vice versa) or to JSON text (and vice versa):
Code Example
Quick start:
<?xml version="1.0" encoding="utf-8"?>
<note importance=”high” logged=”true”>
Watch out!
<time>
11:00 am
</time>
</note>
Motivation
There are many XML to JavaScript/JSON converters out there, but could not satisfy the following requirements:
- Compliant
- Fast
- Support streaming
Installation
npm install --save xml-js
API Reference
Depending on the size of the project, if it is small and simple enough the reference docs can be added to the README. For medium size to larger projects it is important to at least provide a link to where the API reference docs live.
Tests
To perform tests on this project:
cd node_modules/xml-js/test
npm test
Contributions
Reporting
Use this link to report an issue or bug. Please include a sample code or Jasmine test spec where the code is failing.
Contributing
If you want to add a feature or fix a bug, please fork the repository and make the changes in your fork. Add tests to ensure your code is working properly, then submit a pull request.