1
0
Fork 0

fix bug on oai iterator that skip record cleaned

This commit is contained in:
Sandro La Bruzzo 2021-09-07 10:46:26 +02:00
parent d4dadf6d77
commit 3c6fc2096c
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@ public class OaiIterator implements Iterator<String> {
report.put(e.getClass().getName(), e.getMessage());
final String cleaned = XmlCleaner.cleanAllEntities(xml);
try {
doc = DocumentHelper.parseText(xml);
doc = DocumentHelper.parseText(cleaned);
} catch (final DocumentException e1) {
final String resumptionToken = extractResumptionToken(xml);
if (resumptionToken == null) {