An XML validation error occurred and the XML could not be exported

When I try to download XML file for crossref (DOI) using Crossref XML Export Plugin: I am not able to download Metadata is show error “An XML validation error occurred and the XML could not be exported.”

And also I deposited article from OJS 3.4.0.3 site but not work DOI : https://doi.org/10.53037/na.v8i1.84

Steps I took leading up to the issue
For example:

  1. Go to ‘CrossrefExportPlugin’
  2. Click on ‘Export DOI’
  3. See error ‘An XML validation error occurred and the XML could not be exported.’

I am using OJS 3.4.0.3

Please give me solution.

2 Likes

I have the same problem with OJS 3.4.0.4. Any idea, or does someone else know?

I have the same problem with OJS 3.4.0.4 (Medra). Any idea, or does someone else know?

I think if uncheck “Use the mEDRA test API (testing environment) for DOI registration. Please do not forget to remove this option for the production.” in Doi setting/Registeration this problem will solve

I have the same problem to export DOIs. @asmecher Could you please investigate this issue?

Hi all,
The error message means that the exported XML file is not valid. I would need to see the XML file in order to know why.
Could you please try to export one article DOI and when that error occurs please go to your files directory on the server and take a look in that most recent XML file in the tmp/ folder there. Please send me that XML file – there I can see why the export is failing.

Best,
Bozana

@monirehbastami, I see you are using mEDRA. Does the problem still occurs when you try to export an article DOi when using the test environment? Could you please also try it again and send me the last XML file from your tmp/ folder in your files folder on the server? For you (i.e. for mEDRA users), this thread might be also interested: Problem with DOI [OJS 3.4.0.4.] - #5 by Almar93.

I am using Crossref and having the same problem when I select All or individual and Export DOIs, it shows the following error;

An XML validation error occurred and the XML could not be exported.

I investigated individual file and found if there is any special character like &, “'” in the title, it shows this error. All other article files can be exported.

@asmecher can you please help?

Hi @esciencepress

I could reproduce in the current 3.4.x version. Follow this issue for the fix: Crossref export xml validation error: & in title not escaped · Issue #9959 · pkp/pkp-lib · GitHub. It will be available in the next release.

Thanks a lot!
Bozana