reformat xhtml file