namespace= (Nokogiri::XML::Node)

    # File lib/nokogiri/xml/node.rb, line 440
          def namespace= ns
            if ns.document != document
              raise ArgumentError, 'namespace must be declared on the same document'
            end
            unless ns.is_a? Nokogiri::XML::Namespace
              raise TypeError, "#{ns.class} can't be coerced into Nokogiri::XML::Namespace"
            end
            set_namespace ns
          end