Skip to content

METS reader: support namespace prefixes other than mets or none #340

@bertsky

Description

@bertsky

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.

Metadata

Metadata

Assignees

Labels

Priority: HighStatus: ConfirmedIndicates an issue that was accepted by the contributorsType: EnhancementIndicates an enhancement proposal for an existing feature

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions