protected function _cbElementStart($parser, $name, Array $attributes)
	{
		$idx = xml_get_current_byte_index($this->_parser);
		
		$this->_empty = $this->_buffer[$idx - $this->_offset] == '/';
		
		$attrs = "";
		foreach ($attributes as $key => $val) {
			$attrs .= " " . $key . "=\"" . $val . "\"";
		}
		
		fwrite($this->_output, $this->_getPaddingStr() . "<" . $name . $attrs . ($this->_empty ? ' />' : '>') . "\n");
		
		if (!$this->_empty) ++$this->_depth;
	}
protected function _cbElementStart($parser, $name, Array $attributes)
	{
		$idx = xml_get_current_byte_index($this->_parser);
		
		$this->_empty = $this->_buffer[$idx - $this->_offset] == '/';
		
		$attrs = "";
		foreach ($attributes as $key => $val) {
			$attrs .= " " . $key . "=\"" . $val . "\"";
		}
		
		fwrite($this->_output, $this->_getPaddingStr() . "<" . $name . $attrs . ($this->_empty ? ' />' : '>') . "\n");
		
		if (!$this->_empty) ++$this->_depth;
	}
protected function _cbElementStart ( $ parser , $ name , Array $ attributes ) { $ idx = xml_get_current_byte_index ( $ this -> _parser ) ; $ this -> _empty = $ this -> _buffer [ $ idx - $ this -> _offset ] == '/' ; $ attrs = "" ; foreach ( $ attributes as $ key => $ val ) { $ attrs .= " " . $ key . "=\"" . $ val . "\"" ; } fwrite ( $ this -> _output , $ this -> _getPaddingStr ( ) . "<" . $ name . $ attrs . ( $ this -> _empty ? ' />' : '>' ) . "\n" ) ; if ( ! $ this -> _empty ) ++ $ this -> _depth ; }
Element start callback

@param resource $parser xml parser
@param string $name element name
@param array $attributes element attributes
@return void
Element start callback