title: Reading XML only contents from a Log file
body: <p>I have a log file which stores the data in XML format. I want to read this data but the problem that I am getting is that log file is not well structured XML file. It contains some additional data like :</p>
  
  <pre><code>03/22/2013 : 13:23:32 &lt;?xml version="1.0" encoding="UTF-8"?&gt;
  &lt;element1&gt;
  ...
  ...
  ...
  &lt;/element1&gt;
  </code></pre>
  
  <p>As you will notice 03/22/2013 : 13:23:32 is not allowing me to read data and throwing exception saying "Data at the root level is invalid"</p>
  
  <p>I am using following method to read XML</p>
  
  <pre><code> XmlDocument doc = new XmlDocument();
              doc.Load("file.log");
              string xmlcontents = doc.InnerXml;
              label1.Text = xmlcontents;
  </code></pre>
  
  <p>Please guide me through the solution as this is a rare case for me. I tried googling for a solution but couldnt succeed
  Thanks</p>