protected function _cbCharacterData($parser, $data)
	{
		if (!$this->_options["formatCData"]) {
			return;
		}
		
		$data = trim($data);
			
		if (strlen($data)) {
			$pad = $this->_getPaddingStr();
			
			if ($this->_options["multipleLineCData"]) {
				
				// remove all tabs
				$data = str_replace("\t", "", $data);
				
				// append each line with a padding string
				$data = implode($this->_options["inputEOL"] . $pad, explode($this->_options["inputEOL"], $data));
			}
			
			if ($this->_options["wordwrapCData"]) {
				$data = wordwrap($data, $this->_options["wordwrapCData"], $this->_options["outputEOL"] . $pad, false);
			}
			
			fwrite($this->_output, $pad . $data . "\n");
		}
	}
protected function _cbCharacterData($parser, $data)
	{
		if (!$this->_options["formatCData"]) {
			return;
		}
		
		$data = trim($data);
			
		if (strlen($data)) {
			$pad = $this->_getPaddingStr();
			
			if ($this->_options["multipleLineCData"]) {
				
				// remove all tabs
				$data = str_replace("\t", "", $data);
				
				// append each line with a padding string
				$data = implode($this->_options["inputEOL"] . $pad, explode($this->_options["inputEOL"], $data));
			}
			
			if ($this->_options["wordwrapCData"]) {
				$data = wordwrap($data, $this->_options["wordwrapCData"], $this->_options["outputEOL"] . $pad, false);
			}
			
			fwrite($this->_output, $pad . $data . "\n");
		}
	}
protected function _cbCharacterData ( $ parser , $ data ) { if ( ! $ this -> _options [ "formatCData" ] ) { return ; } $ data = trim ( $ data ) ; if ( strlen ( $ data ) ) { $ pad = $ this -> _getPaddingStr ( ) ; if ( $ this -> _options [ "multipleLineCData" ] ) { // remove all tabs
 $ data = str_replace ( "\t" , "" , $ data ) ; // append each line with a padding string
 $ data = implode ( $ this -> _options [ "inputEOL" ] . $ pad , explode ( $ this -> _options [ "inputEOL" ] , $ data ) ) ; } if ( $ this -> _options [ "wordwrapCData" ] ) { $ data = wordwrap ( $ data , $ this -> _options [ "wordwrapCData" ] , $ this -> _options [ "outputEOL" ] . $ pad , false ) ; } fwrite ( $ this -> _output , $ pad . $ data . "\n" ) ; } }
Character data callback

@param resource $parser xml parser
@param string $data character data
@return void
Character data callback