function discard_data($parser, $data) {
        if (!$this->errorstarted) {
            // Not interested
            return true;
        }
        $data = trim($data);
        if (isset($this->errorstarted->faultstringstarted) && !empty($data)) {
            $this->remoteerror .= ', message: ' . $data;
        } else if (isset($this->errorstarted->faultcodestarted)) {
            $this->remoteerror = 'code: ' . $data;
            unset($this->errorstarted->faultcodestarted);
        } else if ($data == 'faultCode') {
            $this->errorstarted->faultcodestarted = true;
        } else if ($data == 'faultString') {
            $this->errorstarted->faultstringstarted = true;
        }
        return true;

    }
function discard_data($parser, $data) {
        if (!$this->errorstarted) {
            // Not interested
            return true;
        }
        $data = trim($data);
        if (isset($this->errorstarted->faultstringstarted) && !empty($data)) {
            $this->remoteerror .= ', message: ' . $data;
        } else if (isset($this->errorstarted->faultcodestarted)) {
            $this->remoteerror = 'code: ' . $data;
            unset($this->errorstarted->faultcodestarted);
        } else if ($data == 'faultCode') {
            $this->errorstarted->faultcodestarted = true;
        } else if ($data == 'faultString') {
            $this->errorstarted->faultstringstarted = true;
        }
        return true;

    }
function discard_data ( $ parser , $ data ) { if ( ! $ this -> errorstarted ) { // Not interested return true ; } $ data = trim ( $ data ) ; if ( isset ( $ this -> errorstarted -> faultstringstarted ) && ! empty ( $ data ) ) { $ this -> remoteerror .= ', message: ' . $ data ; } else if ( isset ( $ this -> errorstarted -> faultcodestarted ) ) { $ this -> remoteerror = 'code: ' . $ data ; unset ( $ this -> errorstarted -> faultcodestarted ) ; } else if ( $ data == 'faultCode' ) { $ this -> errorstarted -> faultcodestarted = true ; } else if ( $ data == 'faultString' ) { $ this -> errorstarted -> faultstringstarted = true ; } return true ; }
Discard the next chunk of character data

This is used for tags that we're not interested in.

@param   mixed   $parser The XML parser
@param   string  $data   The content of the current tag (1024 byte chunk)
@return  bool            True
Discard the next chunk of character data