Two options I can think of:
- You're using different versions of the XML parser, and one is stricter than the other
- Your file copy isn't accurate
How are you copying the files? If you take the MD5 checksum of the two files, are they the same?
The next obvious thing to do is see what's in line 1116371. Here's a short C# program which will show you a specified line for a big file (it assumes UTF-8 encoding, but you could change that):
using System;
using System.IO;
public class ShowLine
{
static void Main(string[] args)
{
if (args.Length != 2)
{
Console.WriteLine("Usage: ShowLine <file> <line>");
return;
}
// TODO: error checking for argument validity
string file = args[0];
int lineNo = int.Parse(args[1]);
using (TextReader reader = File.OpenText(file))
{
string line = null;
for (int i=0; i < lineNo; i++)
{
line = reader.ReadLine();
if (line == null)
{
Console.WriteLine("Not enough lines in file!");
return;
}
}
Console.WriteLine(line);
}
}
}