title: In C#, is there a way to add an XML node to a file on disk WITHOUT loading it first?
body: <p>I have a very basic XML structure/file on disk which is something like:</p>
  
  <pre><code>&lt;root&gt;
      &lt;data timestamp="dd-mm-yyyy" type="comment"&gt;kdkdkdk&lt;/data&gt;
      &lt;data timestamp="dd-mm-yyyy" type="event"&gt;kdkdkdkgffgfdgf&lt;/data&gt;
      &lt;data timestamp="dd-mm-yyyy" type="something"&gt;kddsdsfsdkdkdk&lt;/data&gt;
  &lt;/root&gt;
  </code></pre>
  
  <p>The XML will be, as mentioned, in an external file on disk.  As the file might grow fairly large (actually gets 'trimmed' every couple of weeks), I don't want to load the XML file first to add a new node...</p>
  
  <p>Is there a way to add a new node like this?  it can be just added to the top/bottom etc, as the process that actually uses the XML sorts it by timestamp anyway..</p>
  
  <p>I'm guessing a crude way is to append the node as text.. however I think that would add the node AFTER the end  tag??</p>
  
  <p>Any ideas gratefully received..
  David.</p>