title: Convert Comma separated string to XML using C#
body: <p>I want to convert the string to XML.
  I have a string like below. It contains the Programming language names.</p>
  
  <pre><code>string lang = "java,php,c#,asp.net,spring,hibernate";
  </code></pre>
  
  <p>I want to convert this string to XML formal like below:</p>
  
  <pre><code>&lt;Languages&gt;
    &lt;lang Name="java"/&gt;
    &lt;lang Name="php"/&gt;
    &lt;lang Name="c#"/&gt;
    &lt;lang Name="asp.net"/&gt;
    &lt;lang Name="spring"/&gt;
    &lt;lang Name="hibernate"/&gt;
  &lt;/Languages&gt;
  </code></pre>
  
  <p>I want to store this XML data in a variable to store later in a database.</p>