[thelist] Problems traversing XML tree in JavaScript

Matt Warden mwarden at gmail.com
Tue Aug 2 11:21:19 CDT 2005


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Paul Waring wrote:
> it works the way I want, but surely <sites> isn't the root element of
> the document because what would happen if I had say:
> 
> <sites><site id="10">site 1</site></sites>
> <companies><company id="10">company 1</company></companies>
> 
> which one would responseXML.documentElement point at then? Or would it
> be an array (meaning I'd have more than one root element, which I would
> have thought is incorrect)?

You'll get an error.

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


This email proudly and graciously contributes to entropy.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.4 (GNU/Linux)

iD8DBQFC751/AQ0d4HGyPE8RAkvKAJ4uRl/+AccjW0mnqBZXJje+LjbSbgCePtnr
aljpsRmOONuydR7rYti6jM0=
=pH3L
-----END PGP SIGNATURE-----


More information about the thelist mailing list