serialize (Nokogiri::HTML::Document)

    # File lib/nokogiri/html/document.rb, line 11
          def serialize *args
            if args.first && !args.first.is_a?(Hash)
              $stderr.puts("\#{self.class}#serialize(encoding, save_opts) is deprecated and will be removed in\nNokogiri version 1.4.0 *or* after June 1 2009.\nYou called serialize from here:\n\n\#{caller.join(\"\\n\")}\n\nPlease change to \#{self.class}#serialize(:encoding => enc, :save_with => opts)\n")
            end

            options = args.first.is_a?(Hash) ? args.shift : {
              :encoding   => args[0],
              :save_with  => args[1] || XML::Node::SaveOptions::FORMAT |
                XML::Node::SaveOptions::AS_HTML |
                XML::Node::SaveOptions::NO_DECLARATION |
                XML::Node::SaveOptions::NO_EMPTY_TAGS
            }
            super(options)
          end