Hello,
I am trying to get some values from an XML response for a Windows Sidebar Gadget but I failed so far.
This is an example of the XML:
- <?xml version="1.0" encoding="utf-8"?>
- <response>
- <valid_until>2011-03-07 10:51:06.000997</valid_until>
- <data>2146259433</data>
- <sms>621</sms>
- <credits>14.28</credits>
- <sms_super_on_net>990</sms_super_on_net>
- <is_expired>False</is_expired>
- </response>
And this is how I get it, it is through a common XMLHttpRequest working in every browser.
- var response = xmlHttp.responseText;
I have tried doing
- var sms = $(response).find('sms').text();
But that didn't work.
What else could I try?
Regards,
Bart