How to generate a Gramps xml file outside of Gramps?

A post was merged into an existing topic: GetMyAncestors : a standalone tool to export FamilySearch ancestors