Add hasAttribute() to XElement #9