Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Where can ODXML schema specification be found? #488

Closed
lancioni opened this issue Oct 24, 2023 · 2 comments · Fixed by #494
Closed

Where can ODXML schema specification be found? #488

lancioni opened this issue Oct 24, 2023 · 2 comments · Fixed by #494

Comments

@lancioni
Copy link

I can't find anywhere in the documentation website or the GitHub code a specification of the ODXML format. Is any XSD , DTD or other schema available?

@Nickersoft
Copy link
Member

Nickersoft commented Oct 24, 2023

Hey @lancioni! Thanks for opening an issue. There isn't, currently, though I agree there definitely should be. I'll look into writing/generating a DTD or XSD for the current format. In the meantime, the website holds all the information currently available about the format.

@Nickersoft
Copy link
Member

I added a script that will generate a valid XSD given the Go structs that support the ODXML format. Seemed easier than trying to generate structs from an XSD, seeing we have addition JSON tags on the structs and whatnot. It's available in the root of the repository :)

Started #491 to try to add XML validation to the ODict CLI itself, but have run into a bunch of issues trying to cross-compile libxml2 so put a pin in it for now.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

Successfully merging a pull request may close this issue.

2 participants