Can't import an issue xml with keywords and abstract within the article of the issue

hi,
i’m trying to import an xml file (link below) but when i add the keywords and abstract element (both within each article element) of the issue, it gives me the following error:

Element '{http://pkp.sfu.ca}keywords': This element is not expected. Expected is one of ( {http://pkp.sfu.ca}covers, {http://pkp.sfu.ca}issueId, {http://pkp.sfu.ca}citations ).
Element '{http://pkp.sfu.ca}keywords': This element is not expected. Expected is one of ( {http://pkp.sfu.ca}covers, {http://pkp.sfu.ca}issueId, {http://pkp.sfu.ca}citations ).

I’m new to the system and still trying to figure it all out so I’ll try and give you all the info i know of that could be of any help. (If there’s anything else that could be of help please let me know!)

I’m using OJS 3.2.1.1 with the Native XML Plugin to import and the XML i made was based on the export of one that was already on the system. Without the abstract and keywords elements it imports all the issues with no problem.

it would be amazing if someone could take a look at my XML file an tell me what i can do about these errors.

because the xml is on the large side i put it into a pastebin link: https://pastebin.com/0yVa0NAb

Hi @1Ruben,

What specific version of OJS are you working with? (Please include this in your posts.)

Regards,
Alec Smecher
Public Knowledge Project Team

I’m running OJS 3.2.1.1

Hi @1Ruben,

The only problem is that your elements are out of order. Moving your abstract and keywords elements above the list of authors should correct it. If you’re not already, I’d suggest working with an XML validator (I use xmllint but there are many) and checking your work against the schema file (plugins/importexport/native/native.xsd) to make sure it follows the expected format.

Regards,
Alec Smecher
Public Knowledge Project Team

Oh didn’t know the order mattered that much. Thanks for the help!