@unicity/xml-parser
v1.0.5
Published
## About This is a wrapped version of `xml2json` that will remove "&" characters before parsing the xml and then add them back after.
Downloads
15
Maintainers
Keywords
Readme
Unicity-XML-Parser
About
This is a wrapped version of xml2json
that will remove "&" characters before parsing the xml and then add them back after.
const XML = require('@unicity/xml-parser');
`<?xml version="1.0" encoding="utf-8"?>
<Data>
<Field1>The field below used to not work</Field1>
<Field2>حي ش&#X</Field2>
</Data>`;
const options = {
object : true
};
const dataObject = XML.parse(xml, options);