title: Create XML file from perl hash
body: <p>I have a URL which returns me a array of String in perl (a hash) . I need to write these string array as xml file . How can i do that ..
  i have basically 
  step1 : get perl hash </p>
  
  <pre><code>my @xml = $phone-&gt;getXml();
  </code></pre>
  
  <p>step 2: iterate through the perl hash and add the elements in array as xml as it is.</p>
  
  <pre><code> my $writer = new XML::Writer();
  </code></pre>
  
  <p>Instead of adding start and end tag ...
  i want to add the elements in the array to a file and save it 
  something like:</p>
  
  <pre><code>foreach my $Line (@xml) {
    # some writer parameter which can write it to file and save as "my.xml"
    writer-&gt;
  }
  </code></pre>
  
  <p>I am new to perl ..can some one help me in step 2 pls ..</p>