Fixed windows line endings.
Added support for the XML format.