Fixes #4476: Correct the XML pretty printer to always preserve spaces

To correct the behavior of the XML pretty printer, I had to copy&paste the source code of the original and change the "doPreserve" method which is private in scala.xml.PrettyPrinter. 

All the remaining is just calling the good class.