title: Not able to post xml data with jquery to server side(php)
body: <p>what i am doing is:</p>
  
  <ol>
  <li><p>reading a xml file with ajax get method </p></li>
  <li><p>and then updating a particular node value of xml</p></li>
  <li>after updating this xml response i am posting it to the server side (php) for writing that                xml file again</li>
  </ol>
  
  <p>i am getting error in posting the updated xml response to server side
  the error is: <strong>NS_ERROR_XPC_BAD_CONVERT_JS: Could not convert JavaScript argument</strong></p>
  
  <p>i found this accepted answer but this didn't work for me: <a href="https://stackoverflow.com/questions/4667067/how-to-change-the-value-of-an-xml-node-with-jquery">How to change the value of an xml node with jquery?</a></p>
  
  <p>here is my somecode: </p>
  
  <pre><code>$.ajax({
                  url: "&lt;?php echo $xmlFilePath;?&gt;",
                  type: "GET",
                  dataType: "xml",
                  success: function(xml){    
  
                      $(xml).find("Page[id='1']").each(function(){
                         $(this).find('ContentOne').text("New Value");
                      });
  
                   $.post('&lt;?php echo base_url(); ?&gt;contentadd', { xml: escape($(xml))}, function(data){alert("Data Loaded: " + data);});
  
                  }
          });
  </code></pre>
  
  <p>any quick response will be helpfull</p>