src/Data/Xml.php
private function _getNodeAttributes(DOMElement $pNode)
    {
        $attributes = array();
        if ($pNode->attributes->length) {
            foreach ($pNode->attributes as $key => $attr) {
                $attributes[$key] = $attr->value;
            }
        }

        return $attributes;
    }
private function _getNodeAttributes(DOMElement $pNode)
    {
        $attributes = array();
        if ($pNode->attributes->length) {
            foreach ($pNode->attributes as $key => $attr) {
                $attributes[$key] = $attr->value;
            }
        }

        return $attributes;
    }
private function _getNodeAttributes ( DOMElement $ pNode ) { $ attributes = array ( ) ; if ( $ pNode -> attributes -> length ) { foreach ( $ pNode -> attributes as $ key => $ attr ) { $ attributes [ $ key ] = $ attr -> value ; } } return $ attributes ; }
Get the node attributes as array.

@param DOMElement $pNode
@return array
Get the node attributes as array .