jxon
jxon copied to clipboard
lossless JavaScript XML Object Notation
Should resolve the security issue reported in the deprecated xmldom package ```script ✔ 12:20 ~/src/github.com/geoffcorey/jxon [master|…2] $ npm test > [email protected] pretest /home/geoff/src/github.com/geoffcorey/jxon > npm ls --depth=Infinity > /dev/null >...
Snyk has created this PR to fix one or more vulnerable packages in the `npm` dependencies of this project.  #### Changes included in this PR - Changes to...
Fixes #52 by using [`lookupNamespaceURI`](https://developer.mozilla.org/en-US/docs/Web/API/Node/lookupNamespaceURI) and supporting changes. Tested with current Chromium (89) and Firefox (86) on Ubuntu (not on IE or other browsers). See [updated demo](http://plnkr.co/edit/mhGOEVfX4f0Rtpgb?open=lib%2Fscript.js&preview) that now has...
Hi there @tyrasd, Great library, thanks a lot! Here's an example that works perfectly in Chrome 58 and Firefox 53: ```html XML Serialization var xml = 'a012345d-12bc-41fe-a35d-ff713bc876e0Complete Automatically?Would you like...
When the following JavaScript object, with a custom namespace `xmlns:locus` defined in the root element and some nested element prefixed with `locus:`, is serialized to a XML string with `jsToString`,...
…and, if found, use xmldom vs window
Passing a javascript object to `jxon.jsToXml` causes the script to trow with `ReferenceError: isNodeJs is not defined`.
index.min.js:1 Uncaught (in promise) TypeError: oParentNode.hasChildNodes is not a function
jxon is stripping white space from XML content, especially ones explicitly with the `xml:space="preserve"` attribute when going from stringToJs. Example: ``` Reactful Word ``` ``` "w:r": [ { "w:t": "Reactful"...
The natural order of XML elements is lost during a conversion to JSON. ``` This has a hyperlink in it. ``` ...converts to... ``` { "w:r": [ { "w:t": {...