# File rexml/element.rb, line 1133 def prefixes ns = [] each_attribute do |attribute| ns << attribute.name if attribute.prefix == "xmlns" end if @element.document and @element.document.doc_type @element.document.doc_type.attributes_of(@element.expanded_name).each { |attribute| ns << attribute.name if attribute.prefix == 'xmlns' } end ns end