title: C#: Line information when parsing XML with XmlDocument
body: <p>What are my options for parsing an XML file with XmlDocument and still retain line information for error messages later on? (as an aside, is it possible to do the same thing with XML Deserialisation?)</p>
  
  <p>Options seem to include:</p>
  
  <ul>
  <li><a href="http://msdn.microsoft.com/en-us/library/e3x60fe9" rel="noreferrer">Extending the DOM and using IXmlLineInfo</a></li>
  <li><a href="http://social.msdn.microsoft.com/Forums/en/xmlandnetfx/thread/45b9e39c-e195-4706-97ed-75f341360e85" rel="noreferrer">Using XPathDocument</a></li>
  </ul>