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