cleanup XML renderer