|
if (sectorList.item(i).getNodeName().equals("mets:fileSec")) { |
|
fileSector = sectorList.item(i).getChildNodes(); |
|
} |
|
} |
|
if(fileSector == null) { throw new NoSuchElementException("No file sector found."); } |
This (and potentially other) place ensures that METS cannot be read, if the namespace prefix is not precisely mets:. But at least unprefixed XMLs should be supported IMO.
LAREX/src/main/java/de/uniwue/web/io/MetsReader.java
Lines 32 to 36 in 7808bbd
This (and potentially other) place ensures that METS cannot be read, if the namespace prefix is not precisely
mets:. But at least unprefixed XMLs should be supported IMO.