Convert xsd schema to json schema to generate forms to edit xml metadata
We believe that
There are available libraries to translate xsd schemas to json schemas that can then be used to produce valid XML metadata. This way we can use our jsonschema based component to edit XML metadata.
To verify that we will
Try to convert data cite schema into json schema using available online converters.
Use this json schema to generate the form in HARDOCS
Store the json and then convert it to XML in the project
And measure
How simple it is to injest
We are right if
XSD to JSON schema is 100% compatible or almost compatible
We observed
XSD and JSON schemas are not100% compatible which might require manual adjustment of the son schema to make it 100% compatible.
Converted Datacite XML to JSON schema is not current loaded in the form and is not throwing an error
Subschemas need to be also accessed or downloaded, because current online converters and libraries do not compile such schemas. We found a ndoe library called cxsd that fetches all the subschemas and organizes the files in a very useful way.
There are potential solutions:
From that we learned that
The most clean and secure solution is to generate a form from xsd instead of from json schema as another hardocs component
xml2html2xml generates a form and XML in vanilla javascript
Therefore, we will
We will try solutions that converts xsd schemas into forms like this one: xml2html2xml
We will explore if we can replicate the json schema form generator with schemas.
Convert xsd schema to json schema to generate forms to edit xml metadata
We believe that
There are available libraries to translate xsd schemas to json schemas that can then be used to produce valid XML metadata. This way we can use our jsonschema based component to edit XML metadata.
To verify that we will
And measure
We are right if
We observed
cxsd
that fetches all the subschemas and organizes the files in a very useful way.There are potential solutions:
From that we learned that
Therefore, we will