First, thank you very much for this awesome library.
I tried to validate the XML output against the XSD  and found there was the following error:
Error: The ‘http://www.omg.org/spec/BPMN/20100524/MODEL:definitions’ element is not declared. Line 2, Position 2.
Thanks for your help!