bartfeenstra / betty

Betty visualizes and publishes your family history by building interactive, encyclopedia-like genealogy websites out of your Gramps and GEDCOM family trees
https://betty.readthedocs.io
GNU General Public License v3.0
87 stars 14 forks source link

Validate Gramps XML #696

Open bartfeenstra opened 3 years ago

bartfeenstra commented 3 years ago

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

romjerome commented 3 years ago

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