Closed bakman2 closed 9 years ago
Items that are returned are objects ? (in my case that is) If I want to have the value i have to add .nodeValue eg;
a.current = a.temp[0].nodeValue
I must be overlooking something, but what ?
I found it, the trick was to use /string() in stead of /text()
.xpath("//windDirection//preceding-sibling::temperature/@value/string()")
Items that are returned are objects ? (in my case that is) If I want to have the value i have to add .nodeValue eg;
a.current = a.temp[0].nodeValue
I must be overlooking something, but what ?