lib/active_fedora/base.rb in active-fedora-6.0.0.rc1 vs lib/active_fedora/base.rb in active-fedora-6.0.0.rc2
- old
+ new
@@ -212,11 +212,11 @@
credentials = ActiveFedora.config.credentials[0]
else
credentials = ActiveFedora.config.credentials
end
fedora_connection[0] ||= ActiveFedora::RubydoraConnection.new(credentials)
- d = REXML::Document.new( fedora_connection[0].connection.next_pid(args))
- pid =d.elements['//pid'].text
+ d = Nokogiri::XML( fedora_connection[0].connection.next_pid(args))
+ pid = d.xpath('//fedora:pid', 'fedora' => 'http://www.fedora.info/definitions/1/0/management/').text
pid
end
def inner_object # :nodoc
@inner_object