port CAF export to latest XML lib