I have found another solution for this question.
To solve this problem, follow the below example.
var age = "";
age = xmlObj.childNodes(0).firstChild.text;
age = "Age not provided...";
This is just a sample code, this method worked for me and hope it will be useful to others.