StreamReader reader = File.OpenText(file.xml);
string contents = reader.ReadToEnd();
MatchCollection matches1 = Regex.Matches(contents, "<element>");
count1 = matches1.Count;
produces an out of memory exception error for contents string .
Any suggestions?
Mahesh ChandRank #1 · 392.9K pointsPosted Aug 12, 2013, 11:07 AM EDT
How to Perform Streaming Transform of Large XML Documents