source/Core/SimpleXml.php
protected function _addNodeAttributes($oNode, $aAttributes)
    {
        $aAttributes = (array) $aAttributes;
        foreach ($aAttributes as $sKey => $sValue) {
            $oNode->addAttribute($sKey, $sValue);
        }

        return $oNode;
    }
protected function _addNodeAttributes($oNode, $aAttributes)
    {
        $aAttributes = (array) $aAttributes;
        foreach ($aAttributes as $sKey => $sValue) {
            $oNode->addAttribute($sKey, $sValue);
        }

        return $oNode;
    }
protected function _addNodeAttributes ( $ oNode , $ aAttributes ) { $ aAttributes = ( array ) $ aAttributes ; foreach ( $ aAttributes as $ sKey => $ sValue ) { $ oNode -> addAttribute ( $ sKey , $ sValue ) ; } return $ oNode ; }
Adds attributes to given node.

@param SimpleXMLElement $oNode
@param array            $aAttributes

@return SimpleXMLElement
Adds attributes to given node .