how to pass the attribute key and value to a particular node 