src/Certificado/Dom.php
public function getNodeValue($nodeName, $itemNum = 0, $extraTextBefore = '', $extraTextAfter = '')
    {
        $node = $this->getElementsByTagName($nodeName)->item($itemNum);
        if (isset($node)) {
            $texto = html_entity_decode(trim($node->nodeValue), ENT_QUOTES, 'UTF-8');

            return $extraTextBefore . $texto . $extraTextAfter;
        }

        return '';
    }
public function getNodeValue($nodeName, $itemNum = 0, $extraTextBefore = '', $extraTextAfter = '')
    {
        $node = $this->getElementsByTagName($nodeName)->item($itemNum);
        if (isset($node)) {
            $texto = html_entity_decode(trim($node->nodeValue), ENT_QUOTES, 'UTF-8');

            return $extraTextBefore . $texto . $extraTextAfter;
        }

        return '';
    }
public function getNodeValue ( $ nodeName , $ itemNum = 0 , $ extraTextBefore = '' , $ extraTextAfter = '' ) { $ node = $ this -> getElementsByTagName ( $ nodeName ) -> item ( $ itemNum ) ; if ( isset ( $ node ) ) { $ texto = html_entity_decode ( trim ( $ node -> nodeValue ) , ENT_QUOTES , 'UTF-8' ) ; return $ extraTextBefore . $ texto . $ extraTextAfter ; } return '' ; }
getNodeValue.
Extrai o valor do node DOM.
@param string $nodeName identificador da TAG do xml
@param int $itemNum numero do item a ser retornado
@param string $extraTextBefore prefixo do retorno
@param string $extraTextAfter sufixo do retorno
@return string
getNodeValue . Extrai o valor do node DOM .