nodes = xmldoc.documentElement.selectNodes('//record_id');
// Record_ID must be there; otherwise it is an error
var record_id = parseInt(nodes[0].text, 10);
//alert(record_id);
}
catch(e)
{
alert('Unexpected error while parsing retrieved data.\r\nError message is:\r\n' + e.description);
return false;
}