> Among other clean-up, usfm2osis.py avoided this problem by using > Python's XML libraries to ensure that any output was, at the least, > well-formed. It might even include the schema in order to enforce > validity. > My script includes the osis 2.1.1 schema and uses the same XML libraries (lxml) as usfm2osis.py to validate the output.