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