diff --git a/README.md b/README.md index 06705cc..3b2a8e6 100644 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # BMLT Data Converter -- Converts BMLT data from JSON to CSV, XLSX KML, or YAML +- Converts BMLT data from JSON to CSV, XLSX, XML KML, or YAML - Note that export of KML is only supported with GetSearchResults. - Use your semantic interface to build query url. You can find your semantic url by visiting the [tally](https://tally.bmlt.app/) and hitting Explore on your root server. diff --git a/package-lock.json b/package-lock.json index 89e0ac2..2dedf0a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -22,6 +22,7 @@ "fetch-jsonp": "^1.3.0", "gh-pages": "^6.1.1", "js-yaml": "^4.1.0", + "js2xmlparser": "^5.0.0", "prettier": "^3.1.1", "prettier-plugin-svelte": "^3.1.2", "sass": "^1.71.0", @@ -2370,6 +2371,15 @@ "js-yaml": "bin/js-yaml.js" } }, + "node_modules/js2xmlparser": { + "version": "5.0.0", + "resolved": "https://registry.npmjs.org/js2xmlparser/-/js2xmlparser-5.0.0.tgz", + "integrity": "sha512-ckXs0Fzd6icWurbeAXuqo+3Mhq2m8pOPygsQjTPh8K5UWgKaUgDSHrdDxAfexmT11xvBKOQ6sgYwPkYc5RW/bg==", + "dev": true, + "dependencies": { + "xmlcreate": "^2.0.4" + } + }, "node_modules/json-buffer": { "version": "3.0.1", "resolved": "https://registry.npmjs.org/json-buffer/-/json-buffer-3.0.1.tgz", @@ -3772,6 +3782,12 @@ "node": ">=0.8" } }, + "node_modules/xmlcreate": { + "version": "2.0.4", + "resolved": "https://registry.npmjs.org/xmlcreate/-/xmlcreate-2.0.4.tgz", + "integrity": "sha512-nquOebG4sngPmGPICTS5EnxqhKbCmz5Ox5hsszI2T6U5qdrJizBc+0ilYSEjTSzU0yZcmvppztXe/5Al5fUwdg==", + "dev": true + }, "node_modules/yallist": { "version": "4.0.0", "resolved": "https://registry.npmjs.org/yallist/-/yallist-4.0.0.tgz", diff --git a/package.json b/package.json index cb31fec..ded4da4 100644 --- a/package.json +++ b/package.json @@ -27,6 +27,7 @@ "fetch-jsonp": "^1.3.0", "gh-pages": "^6.1.1", "js-yaml": "^4.1.0", + "js2xmlparser": "^5.0.0", "prettier": "^3.1.1", "prettier-plugin-svelte": "^3.1.2", "sass": "^1.71.0", diff --git a/src/lib/DataConverter.svelte b/src/lib/DataConverter.svelte index 45dd938..f193af7 100644 --- a/src/lib/DataConverter.svelte +++ b/src/lib/DataConverter.svelte @@ -1,12 +1,13 @@