original_string: 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 '';
      }
code: 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 '';
      }
code_tokens: 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 '' ; }
docstring: 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
docstring_tokens: getNodeValue . Extrai o valor do node DOM .