title: How to output xml using c# elements
body: <p>I'm creating a site, I have a payment gateway i want to integrate, all I need is to pass some of my c# elements to the web service, I need to output an xml file with my elements.
  Please how do I do this?</p>
  
  <p>The request that needs to be sent is as follows:</p>
  
  <pre><code>&lt;PaymentRequest&gt;
  &lt;ProductName&gt;Match Ticket&lt;/ProductName&gt;   (Static value)                                                                                                                                
  &lt;Prefix&gt;Mr&lt;/Prefix&gt;  (Prefix of the booker)                                                                                                                                                                                                    
  &lt;FirstName&gt;Test&lt;/FirstName&gt;  (First name of the user)                                                                                                                                                               
  &lt;LastName&gt;Test&lt;/LastName&gt;   (Last name of the user)                                                                                                                                                               
  &lt;Address&gt;Test Address&lt;/Address&gt;  Address of the user(can be a dummy value in case the customer did not fill this)                                                                                                                                                        
  &lt;City&gt;London&lt;/City&gt; City of user(can be a dummy value in case the customer did not fill this)                                                                                                                                                                                                                      
  &lt;Country&gt;UK&lt;/Country&gt; Country of user(can be a dummy value in case the customer did not fill this) 
  &lt;Mobile&gt;98231283123&lt;/Mobile&gt; (user phone no)                                                                                                                                                            
  &lt;EmailId&gt;test@test.com&lt;/EmailId&gt; (user email)                                                                                                                       
  &lt;PaymentMethod&gt;PayatBank&lt;/PaymentMethod&gt; (this will be the option selected)                                                                                              
  &lt;TotalAmount&gt;13314&lt;/TotalAmount&gt; (total amount, this is already a label)                                                                                                                                   
  
  &lt;Amount&gt;12926&lt;/Amount&gt;   (Base amount of the booking)                                                                                                                                                                    
  &lt;GatewayCharge&gt;388&lt;/GatewayCharge&gt; (Credit card charges)                                                                                                                            
  &lt;GatewayChargeInPercent&gt;3&lt;/GatewayChargeInPercent&gt;                                                             
  &lt;CallBackURL&gt;http://www.google.com&lt;/CallBackURL&gt;                                                                    Link where the user will get redirected after the payment has been made. This will be used for online payments only. 
  &lt;/PaymentRequest&gt;
  </code></pre>