Tweaks to pull request #327

Changed the code to use a text node instead of a string.