title: How to create a XML using jquery?
body: <p>I want to copy the data from text area and want to create a <code>XML</code> using that data in <code>Jquery</code>.
  To copied it from text area i wrote the following code in <code>Jquery</code>:</p>
  
  <pre><code>&lt;script type="text/javascript"&gt;
       function paste_data() {
           var text = $('#all').val();
           alert(text);
  
       }
  &lt;/script&gt;
  </code></pre>
  
  <p>// all is the id of the text area.</p>
  
  <p>When i print the data it shows me in following format:</p>
  
  <pre><code>406450 8 first
  43333  89 second
  987 90 third-fourth
  </code></pre>
  
  <p>Now i want to create a <code>XML</code> using the above data in <code>javascript or Jquery</code> using the following format. So that i can use it further.</p>
  
  <pre><code>&lt;row dc = "406450" al="8" msg="first" /&gt;
  &lt;row dc = "43333" al="89" msg="second" /&gt;
  &lt;row dc = "987" al="90" msg="third-forth" /&gt; ....and so on 
  </code></pre>
  
  <p>I don't know whether it is possible or not, but what about the split function?</p>