public function getAttrByElem($element) {
        $nodes = $this->_dom_x_path->query("//{$element}");
        
        $contents = [];
        $attrs = [];
        
        foreach ($nodes as $node) {
            
            $attrs = [];
            
            foreach ($node->attributes as $attr) {
                $attrs["{$attr->nodeName}"] = $attr->nodeValue;
            }
            
            array_push($contents, $attrs);
            
        }
        
        return $contents;
    }