Export expoted status to Gnc XML

Constants definition are shared with import, in other commits.