Changed deprecated nodeValue to value