/// <summary> /// Parses stream using the Flat File /// disassembler and the specified schema. /// </summary> /// <param name="inputDocument">Contains the flat file to parse</param> /// <returns>The resulting XML output from the parsing</returns> /// <remarks> /// Use <c ref='ErrorHelper.GetErrorMessage'/> to /// get detailed error information when parsing fails. /// </remarks> public static Stream ParseFF(Stream inputDocument) { FFDisassembler ff = Disassembler.FlatFile().WithDocumentSpec <T>(); return(Parse(ff, inputDocument)); }