title: Reading XML and executing functions dynamically using C#
body: <p>I have a xml as below:</p>
  
  <pre><code>&lt;?xml version="1.0" encoding="ISO-8859-1"?&gt;
  &lt;TestCase Name="1.7 Bus01"&gt;
   &lt;Action Word="Login" Text="Login" TestCaseId="MPD_QS_06"&gt;
      &lt;Parameter Name="userName" Value="user1"/&gt;
      &lt;Parameter Name="userPwd" Value="user1"/&gt;
      &lt;Parameter Name="Tenant" Value="tnt1"/&gt;
      &lt;Parameter Name="expectedResult" Value="Login success"/&gt;
   &lt;/Action&gt;
   &lt;Action Word="AddOrganisation" Text="AddOrganisation"&gt;
      &lt;Parameter Name="name" Value="MAHNEWX"/&gt;
      &lt;Parameter Name="senderId" Value=""/&gt;
      &lt;Parameter Name="address" Value="77 Westferry Circus"/&gt;
      &lt;Parameter Name="postCode" Value="E77 4 HB"/&gt;
      &lt;Parameter Name="city" Value="London"/&gt;
      &lt;Parameter Name="country" Value="United Kingdom"/&gt;
      &lt;Parameter Name="state" Value=""/&gt;
      &lt;Parameter Name="email" Value=""/&gt;
      &lt;Parameter Name="telCountryCode" Value=""/&gt;
      &lt;Parameter Name="telNumber" Value=""/&gt;
      &lt;Parameter Name="telExtension" Value=""/&gt;
      &lt;Parameter Name="faxCountryCode" Value=""/&gt;
      &lt;Parameter Name="faxNumber" Value=""/&gt;
      &lt;Parameter Name="faxExtension" Value=""/&gt;
      &lt;Parameter Name="roleList" Value="MAH"/&gt;
      &lt;Parameter Name="expectedResult" Value="Organisation is added"/&gt;
    &lt;/Action&gt;
    &lt;Action Word="NewValidationRegistration" Text="NewValidationRegistration"&gt;
      &lt;Parameter Name="registrationname" Value="FusionUnion"/&gt;
      &lt;Parameter Name="AS2Identifier" Value="MPTVC"/&gt;
      &lt;Parameter Name="expectedResult" Value="Registration is validated"/&gt;
    &lt;/Action&gt;
    &lt;Action Word="NewSubmissionRegistration" Text="NewSubmissionRegistration"&gt;
       &lt;Parameter Name="registrationname" Value="FusionUnion"/&gt;
       &lt;Parameter Name="AS2Identifier" Value="MPTVC"/&gt;
       &lt;Parameter Name="expectedResult" Value="Registration is submitted"/&gt;
    &lt;/Action&gt;
    &lt;Action Word="Logout" Text="Logout"&gt;
       &lt;Parameter Name="expectedResult" Value="Logout success"/&gt;
    &lt;/Action&gt;
  &lt;/TestCase&gt; 
  </code></pre>
  
  <p>For each <em>Action Word</em> I have a method. How can I read this xml and execute the methods dynamically with parameters. The <em>Parameter Name</em> s are actual variables in my methods. The number of parameters differs each time. Precisely, I want to read the xml and get the list of action words and then execute them using the values.
  Thanks for ur help in advance.</p>
  
  <p>-Sasi</p>