How to generate a Gramps xml file outside of Gramps?