# File rexml/doctype.rb, line 107
    def write( output, indent=0 )
      indent( output, indent )
      output << START
      output << ' '
      output << @name
      output << " #@external_id" unless @external_id.nil?
      unless @children.empty?
	#output << "\n"
	next_indent = indent + 2
	#output << '   '*next_indent
	output << ' ['
	child = nil		# speed
	@children.each { |child|
	  output << "\n"
	  child.write( output, next_indent )
	}
	output << "\n"
	#output << '   '*next_indent
	output << "]"
      end
      output << STOP
    end