How to serialize entire XML document into JavaScript array?

Posted by Jack Roscoe on Stack Overflow See other posts from Stack Overflow or by Jack Roscoe
Published on 2010-06-14T08:41:59Z Indexed on 2010/06/14 8:42 UTC
Read the original article Hit count: 339

Filed under:
|
|

Hi,

I have a html document which loads an XML document using jQuery

jQuery.ajax( {
    type: "GET",
    url: example.xml,
etc...

When that XML is loaded I want to serialize the entire XML document into a JavaScript array.

How would I do this?

© Stack Overflow or respective owner

Related posts about JavaScript

Related posts about jQuery