title: Parse XML string in VB.NET
body: <p>I am trying to parse a particular attribute/value pair from XML in VB.NET. </p>
  
  <p>The XML is originally a string that looks like XML but it needs to be converted to an XML-like datatype or structure before I can parse it. </p>
  
  <p>How can I convert this string into XML, and then parse the info that I need?</p>
  
  <p>EDIT:</p>
  
  <p><code>Dim doc As XDocument = XDocument.Parse(str)</code> gets the string into xml, however <code>Call doc.attribute("name").Value</code> doesn't work. I've confirmed that the name of the Sub that I'm trying to call is correct. What am I doing wrong?</p>
  
  <p>I've tried converting the value of the XML back into a string. Is here a special datatype for Subs? Am I missing something else?</p>
  
  <p><strong>Edit2</strong>
  The value of the XML attribute is the name of a function. I'd like to call different functions based on the value of the value, which will be changed by me via a flash activex control. I pretty much have total control over what values i'm dealing with here. </p>
  
  <p>(Do I need a delegate function? )</p>
  
  <p>Edit3:</p>
  
  <p>I got it. 
  'CallByName()' with appropriate arguments.  </p>