File tree Expand file tree Collapse file tree 3 files changed +3
-3
lines changed
Expand file tree Collapse file tree 3 files changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -206,8 +206,7 @@ def load_document(xml)
206206 case @parser
207207 when 'libxml'
208208 begin
209- parser = XML ::Parser . new ( )
210- parser . string = xml
209+ parser = XML ::Parser . string ( )
211210 return parser . parse
212211 rescue XML ::Parser ::ParseError => e
213212 raise OAI ::Exception , 'response not well formed XML: ' +e , caller
Original file line number Diff line number Diff line change 1+ require 'time'
12require 'zlib'
23require 'net/smtp'
34require 'yaml'
Original file line number Diff line number Diff line change @@ -72,7 +72,7 @@ def call(url, opts)
7272
7373 file = Tempfile . new ( 'oai_data' )
7474 gz = Zlib ::GzipWriter . new ( file )
75- gz << "<? xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n "
75+ gz << "<?xml version=\" 1.0\" encoding=\" UTF-8\" ?>\n "
7676 gz << "<records>"
7777 begin
7878 response = client . list_records ( options )
You can’t perform that action at this time.
0 commit comments