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;
	}