    # File temp/element.rb, line 674
                    def write(writer=$stdout, indent=-1, transitive=false, ie_hack=false)
                            #print "ID:#{indent}"
                            writer << "<#@expanded_name"

                            @attributes.each_attribute do |attr|
                                    writer << " "
                                    attr.write( writer, indent )
                            end unless @attributes.empty?

                            if @children.empty?
            if transitive and indent>-1
              writer << "\n"
              indent( writer, indent )
            elsif ie_hack
              writer << " "
            end
                                    writer << "/"
                            else
                                    if transitive and indent>-1 and !@children[0].kind_of? Text
                                            writer << "\n"
                                            indent writer, indent+1
                                    end
                                    writer << ">"
                                    write_children( writer, indent, transitive, ie_hack )
                                    writer << "</#{expanded_name}"
                            end
                            if transitive and indent>-1 and !@children.empty?
                                    writer << "\n"
                                    indent -= 1 if next_sibling.nil?
                                    indent(writer, indent)
                            end
                            writer << ">"
                    end