# File lib/nokogiri/xml/document.rb, line 68
      def namespaces
        root ? root.collect_namespaces : {}
      end