title: How to write data to an xml file from angularjs
body: <p>I have an xml file as follows,</p>
  
  <pre><code>  &lt;?xml version="1.0" encoding="UTF-8" ?&gt;
    &lt;rss version="2.0"&gt;
     &lt;channel&gt;
      &lt;title&gt;XpertDox&lt;/title&gt;
   &lt;link&gt;http://localhost:4000&lt;/link&gt;
     &lt;description&gt;Find a doctor&lt;/description&gt;
  
  
   &lt;item&gt;
  &lt;title&gt;new feed2&lt;/title&gt;           
  &lt;link&gt;http://www.espncricinfo.com/&lt;/link&gt;
  &lt;description&gt;FinddddlklfggfsASAke&lt;/description&gt;
  &lt;/item&gt;
  
  
  
  &lt;item&gt;
  &lt;title&gt;new feed&lt;/title&gt;           
  &lt;link&gt;http://timesofindia.indiatimes.com/&lt;/link&gt;
  &lt;description&gt;FinddddlklsASAke&lt;/description&gt;
  &lt;/item&gt;
  
  &lt;item&gt;
  &lt;title&gt;w3schoolswdqeqweqw&lt;/title&gt;           
  &lt;link&gt;http://www.w3schools.com/html/default.asp&lt;/link&gt;
  &lt;description&gt;Finddddlklke&lt;/description&gt;
  &lt;/item&gt;
  
  
  
  &lt;item&gt;
  &lt;title&gt;w3schools&lt;/title&gt;           
  &lt;link&gt;http://www.w3schools.com/xml/tryrss.asp?filename=rss_ex_guid&lt;/link&gt;
  &lt;description&gt;Finddddlklke&lt;/description&gt;
  &lt;/item&gt;
   &lt;/channel&gt;
   &lt;/rss&gt;
  </code></pre>
  
  <p>My JS,</p>
  
  <pre><code>     getBlogList: function(currentPage, itemsPerPage, base_url) {
          var deferred = $q.defer();
          $http.get(base_url+'getBlogList', 
              {params: {currentPage: currentPage,itemsPerPage: itemsPerPage}}).then(function(data) {
              deferred.resolve(data);
          }).catch(function(results, status) {
              deferred.reject("An error occured while fetching items");
          });
          return deferred.promise;
      }, 
  </code></pre>
  
  <p>Here the task is whenever a new  blog  is  added  the  content must come here and how can i achieve that?I completed have no idea of  doing how?If i have a html ,i can easily bind data since its an xml i was confused.Can any one please help me...</p>