Added getAttributes() which generates associative array of DOMElement's attributes.