title: How to check for valid xml in string input before calling .LoadXml()
body: <p>I would much prefer to do this without catching an exception in <code>LoadXml()</code> and using this results as part of my logic.  Any ideas for a solution that doesn't involve manually parsing the xml myself?  I think VB has a return value of false for this function instead of throwing an XmlException. Xml input is provided from the user.  Thanks much!</p>
  
  <pre><code>if (!loaded)
  {
       this.m_xTableStructure = new XmlDocument();
       try
       {
            this.m_xTableStructure.LoadXml(input);
            loaded = true;
       }
       catch
       {
            loaded = false;
       }
  }
  </code></pre>