Generate XML from module