normalize space only in xml mode