[thelist] js xml2array

Matt Warden mwarden at gmail.com
Fri Oct 28 13:11:06 CDT 2005


> But I'm not able to understand entirely the whole thing. Is there
> something similar in JS and maybe a tutorial that could explain it? What
> do you use usually?

If your goal is to communicate data that will end up as a JS object,
you  might as well use JSON and not XML.

http://www.crockford.com/JSON/index.html

Then you can just eval() it (after a bit of validation).

You will need to use the .responseText property and not the
.responseXML property now.

--
Matt Warden
Miami University
Oxford, OH, USA
http://mattwarden.com


This email proudly and graciously contributes to entropy.



More information about the thelist mailing list