We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
When harvesting the OAI-PMH repository, we get this error after a while :
<?xml version="1.0" encoding="UTF-8"?> <OAI-PMH xmlns="http://www.openarchives.org/OAI/2.0/" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.openarchives.org/OAI/2.0/ http://www.openarchives.org/OAI/2.0/OAI-PMH.xsd"> <responseDate>2022-09-21T21:32:57Z</responseDate> <request>https://collection.mobiliernational.culture.gouv.fr/api/oai-pmh</request> <error code="badArgument">DOMDocument::createElementNS(): unterminated entity reference GILBERT Achille</error> </OAI-PMH>
To reproduce, use this validator: https://validator.oaipmh.com/#ListRecords And put the values in screenshot.
This is probably because the author name is PECQUEREAU Théodore & GILBERT Achille and the & character isn't properly escaped in the XML output.
PECQUEREAU Théodore & GILBERT Achille
&
Properly escaping the output should fix the problem.
The text was updated successfully, but these errors were encountered:
Escape text values in XML for OAI-PMH formatter. Fixes #478
bede49a
Merge pull request #6 from entrepreneur-interet-general/cms
7be2353
Escape text values in XML for OAI-PMH formatter. Fixes entrepreneur-interet-general#478
No branches or pull requests
When harvesting the OAI-PMH repository, we get this error after a while :
To reproduce, use this validator:
https://validator.oaipmh.com/#ListRecords
And put the values in screenshot.
This is probably because the author name is
PECQUEREAU Théodore & GILBERT Achille
and the&
character isn't properly escaped in the XML output.Properly escaping the output should fix the problem.

The text was updated successfully, but these errors were encountered: