Changed prototype for nmem_text_node_cdata so that ptr is using