How to convert string to XML object in JavaScript?

Posted by Jack Roscoe on Stack Overflow See other posts from Stack Overflow or by Jack Roscoe
Published on 2010-06-16T14:21:01Z Indexed on 2010/06/16 14:32 UTC
Read the original article Hit count: 223

Filed under:
|
|

Hi,

I am aware of this question already existing, but it has given me no luck.

I have an application which loads a physicial XML document via the following method:

      jQuery.ajax( {
    type: "GET",
    url: fileName,
    dataType: "xml",
    success: function(data) {
      etc...

I parse the XML and convert it into a string which is saved into a variable so that it can easily be stored in a database. How can I now convert the data in this variable back into an XML object so that it can be parsed as such?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery