Allow access to node attributes

Rather than accessing attributes one at a time, this allows access to a nodes
attributes all in one go.