Remove unnecessary xml