title: How/Can I use linq to xml to query huge xml files with reasonable memory consumption?
body: <p>I've not done much with linq to xml, but all the examples I've seen load the entire XML document into memory.</p>
  
  <p>What if the XML file is, say, 8GB, and you really don't have the option?</p>
  
  <p>My first thought is to use the <a href="http://msdn.microsoft.com/en-us/library/bb298331.aspx">XElement.Load Method (TextReader)</a> in combination with an instance of the <a href="http://msdn.microsoft.com/en-us/library/system.io.filestream.aspx">FileStream Class</a>.</p>
  
  <p>QUESTION: will this work, and is this the right way to approach the problem of searching a very large XML file? </p>
  
  <p>Note: high performance isn't required.. i'm trying to get linq to xml to basically do the work of the program i could write that loops through every line of my big file and gathers up, but since linq is "loop centric" I'd expect this to be possible....</p>