proycon/foliapy

can't read folia xml doc

Midi77 opened this issue · 2 comments

When trying to read in this Folia xml doc I get the error: "Exception: FoLiA Document has no version!"
I'm using python 3.7.

Hmm, some very old FoLIA documents might perhaps not explicitly indicate their version, perhaps the library needs to make a guess then instead of giving an error. If you can edit the input document, then the quickest way to circumvent this for now is probably to add a version attribute to your FoLiA (root) element, and give it an old value of for example "0.8":

<FoLiA version="0.8">

This issue should be solved now in foliapy 2.2.5 which I just released