Update for set nodeset and generic text node function