I am trying to get attribute tagName of a DOMElement object, called $parent, but when I use
$attributes = $parent -> attributes
and then I