Adding the attrKey option

I added the attrKey option to let the user pass the key to store the content of a node when a node has attribute(s), and contains a value.