While trying to create a new Word object from a xml stream I get the following error message:
Aspose.Words.UnsupportedFileFormatException: Unknown file format.
at Aspose.Words.Document.x5d4db34d48fb3129(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document.x5d95f5f98c940295(Stream xcf18e5243f8d5fd3, LoadOptions x27aceb70372bde46)
at Aspose.Words.Document..ctor(Stream stream, LoadOptions loadOptions)
I have spent some time trying to diagnose what was causing this error and have determined it is related to xml documents without line feeds. Besides preformatting the data before creating a stream from it is there any other way to prevent this error from happening?