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

Validate Gramps XML #696

Open
bartfeenstra opened this issue Dec 29, 2020 · 1 comment
Open

Validate Gramps XML #696

bartfeenstra opened this issue Dec 29, 2020 · 1 comment
Labels
enhancement New feature or request python Pull requests that update Python code

Comments

@bartfeenstra
Copy link
Owner

bartfeenstra commented Dec 29, 2020

Validate Gramps XML using the official Doctype. We can download it with the Fetch API. Make sure we fix the major version if we can! Can we pre build the DTD?

The lxml stdlib lets us validate XML against DTD

@bartfeenstra bartfeenstra added the enhancement New feature or request label Dec 29, 2020
@romjerome
Copy link

I do not know if this could help, but I tested some Gramps XML validations in the past (XSD, DTD, RNG). Here, the related sections :
https://github.com/gramps-project/addons-source/blob/master/lxml/lxmlGramplet.py#L291

@bartfeenstra bartfeenstra added the python Pull requests that update Python code label Feb 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request python Pull requests that update Python code
Projects
None yet
Development

No branches or pull requests

2 participants