Hi All,

I get the following value, when doing an xPath expression:

var xmlString = '{!xml}'
var xpathExpr = "//code/text()";

var res = evalXpath(xmlString, xpathExpr);
for (var k=0; k<res.length; k++)
The evalXpath is a built in function which i can use, when i print the result i get:

[#text: 00]

How can i catch the value 00. I have tried to put the result in a variable like:

var obj = res.item(k);

I get nothing back, also without the quotes ( obj[#text] it is not working. The JSON result [#text: 00] doesnt contain the quotes around the labels. How can i get the value 00?

Thanks in advance