1
0
Fork 0

oaf record: xpath for root

This commit is contained in:
Michele Artini 2024-05-08 10:00:53 +02:00
parent 70bf6ac415
commit e234848af8
1 changed files with 1 additions and 1 deletions

View File

@ -105,7 +105,7 @@ public class IrishOaiExporterJob {
if (isValid(doc)) {
r.setId(doc.valueOf("//*[local-name()='objIdentifier']").trim());
r.setBody(gzip(xml));
r.setBody(gzip(doc.selectSingleNode("//*[local-name()='entity']").asXML()));
r.setDate(LocalDateTime.now());
r.setSets(new ArrayList<>());
}