Changes due to api change from NODE_STR -> NODE_TEXT.