    # File temp/element.rb, line 295
                    def add_element element, attrs=nil
          raise "First argument must be either an element name, or an Element object" if element.nil?
                            el = @elements.add(element)
                            if attrs.kind_of? Hash
                                    attrs.each do |key, value|
                                            el.attributes[key]=value if key =~ /^xmlns:/
                                    end
                                    attrs.each do |key, value|
                                            el.attributes[key]=value if key !~ /^xmlns:/
                                    end
                            end
                            el
                    end