Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

SAXParse-Exception when parsing actual METS documents #24

Open
rsteph-de opened this issue Sep 1, 2022 · 0 comments
Open

SAXParse-Exception when parsing actual METS documents #24

rsteph-de opened this issue Sep 1, 2022 · 0 comments
Labels

Comments

@rsteph-de
Copy link
Member

org.jdom2.JDOMException: Encountered a SAX exception processing the Document: 
	at org.jdom2.transform.JDOMSource$DocumentReader.parse(JDOMSource.java:565)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorHandlerImpl.validate(ValidatorHandlerImpl.java:731)
	at java.xml/com.sun.org.apache.xerces.internal.jaxp.validation.ValidatorImpl.validate(ValidatorImpl.java:101)
	at java.xml/javax.xml.validation.Validator.validate(Validator.java:124)
	at org.mycore.mets.model.Mets.isValid(Mets.java:662)
	at org.mycore.mets.model.Mets.<init>(Mets.java:135)
	at org.mycore.mets.iiif.MCRMetsMods2IIIFConverter.<init>(MCRMetsMods2IIIFConverter.java:89)
...
Caused by: org.xml.sax.SAXParseException; cvc-type.3.1.1: Element 'mets:note' ist Simple Type und kann daher keine Attribute haben, mit Ausnahme der Attribute, deren Namespace-Name mit 'http://www.w3.org/2001/XMLSchema-instance' identisch ist und deren [lokaler Name] 'type', 'nil', 'schemaLocation' oder 'noNamespaceSchemaLocation' lautet. Es wurde allerdings das Attribut 'ubr:uri' gefunden.
	at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.createSAXParseException(ErrorHandlerWrapper.java:204)
	at java.xml/com.sun.org.apache.xerces.internal.util.ErrorHandlerWrapper.error(ErrorHandlerWrapper.java:135)
	at java.xml/com.sun.org.apache.xerces.internal.impl.XMLErrorReporter.reportError(XMLErrorReporter.java:396)

in Mayx 2018 - Version .12 the METS XML Schema was extended:

Added xsd:anyAttribute with namespace ##other and processContents lax to these elements: agent/note

Please update the internal METS-Schema that my METS document can be validated and parsed!!!

@rsteph-de rsteph-de added the bug label Sep 1, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant