❗ DEPRECATED ❗ : Superseded by
contentElements
inarticle
object which is already in JSON format.
This repository is a simple xml to json parser for fdmg-article-content.
- NodeJS
- NPM
Install the fdmg-xml-json
as dependency for your project:
- NPMJS:
npm i @fdmg/article-xml-json
To run the repository locally:
- Run
npm i
to install required dependencies - Run
npm run build
to build the project
To use @fdmg/article-xml-json
in your project:
- Install as a dependency
import XMLToJSON from "@fdmg/article-xml-json";
function Foo() {
return (
XMLToJSON.parseXMLToJSON(<<your fdmg-article-content-xml file here>>);
)
}