WINDUP-360: XmlFile fails to load all lines from the file in some cases ...

https://issues.jboss.org/browse/WINDUP-360