├── .editorconfig ├── .gitignore ├── .npmignore ├── .travis.yml ├── AUTHORS ├── README.md ├── bin └── xml2json ├── example.js ├── index.js ├── lib ├── index.js ├── json2xml.js ├── sanitize.js └── xml2json.js ├── package.json └── test ├── .gitignore ├── coerce-overhead.js ├── fixtures ├── alternate-text-node-A.json ├── alternate-text-node-A.xml ├── alternate-text-node-B.json ├── alternate-text-node-C.json ├── alternate-text-node-D.json ├── alternate-text-node-D.xml ├── array-notation.json ├── array-notation.xml ├── coerce.json ├── coerce.xml ├── domain-reversible.json ├── domain.json ├── domain.xml ├── forceArray.json ├── forceArray.xml ├── large.json ├── large.xml ├── null-properties-ignored.xml ├── null-properties-not-ignored.xml ├── null-properties.json ├── reorder.json ├── reorder.xml ├── spacetext.json ├── spacetext.xml ├── xmlsanitize.json ├── xmlsanitize.xml ├── xmlsanitize2.json ├── xmlsanitize2.xml ├── xmlsanitize3.json └── xmlsanitize3.xml ├── test-reorder.js ├── test-space.js ├── test-xmlsanitize.js └── test.js /.editorconfig: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/.editorconfig -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | *.swp 3 | *.DS_Store 4 | -------------------------------------------------------------------------------- /.npmignore: -------------------------------------------------------------------------------- 1 | node_modules 2 | -------------------------------------------------------------------------------- /.travis.yml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/.travis.yml -------------------------------------------------------------------------------- /AUTHORS: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/AUTHORS -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/README.md -------------------------------------------------------------------------------- /bin/xml2json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/bin/xml2json -------------------------------------------------------------------------------- /example.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/example.js -------------------------------------------------------------------------------- /index.js: -------------------------------------------------------------------------------- 1 | module.exports = require('./lib'); 2 | -------------------------------------------------------------------------------- /lib/index.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/lib/index.js -------------------------------------------------------------------------------- /lib/json2xml.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/lib/json2xml.js -------------------------------------------------------------------------------- /lib/sanitize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/lib/sanitize.js -------------------------------------------------------------------------------- /lib/xml2json.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/lib/xml2json.js -------------------------------------------------------------------------------- /package.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/package.json -------------------------------------------------------------------------------- /test/.gitignore: -------------------------------------------------------------------------------- 1 | *.DS_Store 2 | -------------------------------------------------------------------------------- /test/coerce-overhead.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/coerce-overhead.js -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-A.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-A.json -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-A.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-A.xml -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-B.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-B.json -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-C.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-C.json -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-D.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-D.json -------------------------------------------------------------------------------- /test/fixtures/alternate-text-node-D.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/alternate-text-node-D.xml -------------------------------------------------------------------------------- /test/fixtures/array-notation.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/array-notation.json -------------------------------------------------------------------------------- /test/fixtures/array-notation.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/array-notation.xml -------------------------------------------------------------------------------- /test/fixtures/coerce.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/coerce.json -------------------------------------------------------------------------------- /test/fixtures/coerce.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/coerce.xml -------------------------------------------------------------------------------- /test/fixtures/domain-reversible.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/domain-reversible.json -------------------------------------------------------------------------------- /test/fixtures/domain.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/domain.json -------------------------------------------------------------------------------- /test/fixtures/domain.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/domain.xml -------------------------------------------------------------------------------- /test/fixtures/forceArray.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/forceArray.json -------------------------------------------------------------------------------- /test/fixtures/forceArray.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/forceArray.xml -------------------------------------------------------------------------------- /test/fixtures/large.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/large.json -------------------------------------------------------------------------------- /test/fixtures/large.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/large.xml -------------------------------------------------------------------------------- /test/fixtures/null-properties-ignored.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/null-properties-ignored.xml -------------------------------------------------------------------------------- /test/fixtures/null-properties-not-ignored.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/null-properties-not-ignored.xml -------------------------------------------------------------------------------- /test/fixtures/null-properties.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/null-properties.json -------------------------------------------------------------------------------- /test/fixtures/reorder.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/reorder.json -------------------------------------------------------------------------------- /test/fixtures/reorder.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/reorder.xml -------------------------------------------------------------------------------- /test/fixtures/spacetext.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/spacetext.json -------------------------------------------------------------------------------- /test/fixtures/spacetext.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/spacetext.xml -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize.json -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize.xml -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize2.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize2.json -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize2.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize2.xml -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize3.json: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize3.json -------------------------------------------------------------------------------- /test/fixtures/xmlsanitize3.xml: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/fixtures/xmlsanitize3.xml -------------------------------------------------------------------------------- /test/test-reorder.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/test-reorder.js -------------------------------------------------------------------------------- /test/test-space.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/test-space.js -------------------------------------------------------------------------------- /test/test-xmlsanitize.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/test-xmlsanitize.js -------------------------------------------------------------------------------- /test/test.js: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/buglabs/node-xml2json/HEAD/test/test.js --------------------------------------------------------------------------------