For more information, please please refer to:
How to Convert XML to a JavaScript Object
This example code was developed by Craig Buckler of OptimalWorks.net for SitePoint.com.
It can be used without any restrictions but please don't expect 24/7 support! A link back to SitePoint.com is appreciated.