title: Converting string to XML node in VB.NET
body: <p>I've an XML string in database column like this</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;trueFalseQuestion id="585" status="correct" maxPoints="10" 
                     maxAttempts="1" 
                     awardedPoints="10" 
                     usedAttempts="1" 
                     xmlns="http://www.ispringsolutions.com/ispring/quizbuilder/quizresults"&gt;
      &lt;direction&gt;You have NO control over how you treat customers.&lt;/direction&gt;
      &lt;answers correctAnswerIndex="1" userAnswerIndex="1"&gt;
          &lt;answer&gt;True&lt;/answer&gt;
          &lt;answer&gt;False&lt;/answer&gt;
      &lt;/answers&gt;
  &lt;/trueFalseQuestion&gt;
  </code></pre>
  
  <p>But I need to do XML operations on this string like select its name, attributes values,inner text etc. How can I make this possible from this string</p>
  
  <p>EDIT</p>
  
  <p>Im sharing the code snippet I tried, but not working</p>
  
  <pre><code>        Dim myXML As String
          Dim gDt As New DataTable
          gDt.Columns.Add("id")
          gDt.Columns.Add("questionid")
          gDt.Columns.Add("serial")
          gDt.Columns.Add("direction")
          Dim dr As DataRow
  
  
              myXML ='&lt;my above shared XML&gt;'
              Dim xmlDoc As New XmlDocument
              xmlDoc.LoadXml(myXML)
              dr = gDt.NewRow
              dr("serial") = 1
              dr("id") = xmlDoc.Attributes("id").Value
              dr("direction") = xmlDoc("direction").InnerText
               gDt.Rows.Add(dr)
  </code></pre>
  
  <p>But thats not working at all as I wish</p>