title: convert String to XML in VB.NET
body: <pre><code>Dim filter As String
  filter = 'Bal_ln_id = 110 and Bal_ln_id = 100'     
  Dim xmldoc As New System.Xml.XmlDocument
  xmldoc.LoadXml(filter)
  </code></pre>
  
  <p>I am simply trying to convert a string in to xml file in VB.net.I am getting an xmlException <code>'Data at the root level is invalid. Line 1, position 1.'</code></p>
  
  <p>Am I missing something?</p>
  
  <p>I am expecting the output as</p>
  
  <pre><code>&lt;DocumentElement&gt;
    &lt;DATA_TABLE&gt;
      &lt;BAL_LN_ID&gt;110&lt;/BAL_LN_ID&gt;
    &lt;/DATA_TABLE&gt;
    &lt;DATA_TABLE&gt;
       &lt;BAL_LN_ID&gt;100&lt;/BAL_LN_ID&gt;
    &lt;/DATA_TABLE&gt;
  &lt;/DocumentElement&gt;'
  </code></pre>