formatting ugly xml