The matter is, we have no "export as xml file". GanttProject file itself is XML and we can export to MS Project XML format. Assuming that you use the latter, the answer is shown above. If you feed GanttProject file (
.gan) to ProjectLibre, you need to contact ProjectLibre developers.