Add node method for setting data attributes