/**
* Returns a {@link Map} of all attributes for the first/sole {@link Node} held internally by this instance. If that
* Node is not an {@link Element}, this will return null.
*/
public Map<String, String> attributes() {
Node node = node();
if (node instanceof Element) {
Map<String, String> attrs = new HashMap<String, String>();
for (Iterator i = ((Element) node).attributeIterator(); i.hasNext();) {
Attribute a = (Attribute) i.next();
attrs.put(a.getName(), a.getValue());