second pass xml smoothing