Fix namespaces in XML generator