Documentation for input XML files - NationalMuseumAustralia/Collection-API-ETL GitHub Wiki
The API is populated with data drawn from several XML files, exported from EMu and from Piction.
There is a script /usr/local/NMA-API-ETL/generate-schema-docs.sh
which processes these input files to generate a set of documentation from them.
For each data file, the script uses the Trang
schema processor to generate an XML Schema document that describes that file, and uses the xsdvi
tool to generate an interactive diagram of that schema (in SVG format).
The script analyses each of the data files, and selects a sample record which contains a maximal variety of data within it.
These output files (XSD schema files, SVG diagrams, and XML sample records) are stored in the schema-doc
folder of this github repository.