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