cleanup xmldoc