remove trailing whitespace from all files
get the XML parser to decode the XML entities in the text