I am trying to include a paragraph of abstract in an XML upload. Namespaces are
<doi_batch version=“5.3.0” xmlns:xsi=“http://www.w3.org/2001/XMLSchema-instance”
xsi:schemaLocation=“http://0-www-crossref-org.libus.csd.mu.edu/schema/5.3.0 https://0-www-crossref-org.libus.csd.mu.edu/schemas/crossref5.3.0.xsd”
xmlns=“http://0-www-crossref-org.libus.csd.mu.edu/schema/5.3.0” xmlns:jats=“http://0-www-ncbi-nlm-nih-gov.libus.csd.mu.edu/JATS1”>
My code to include the abstract is
jats:abstract
jats:pAround 350 users and some 200 … bla bla … </jats:p>
</jats:abstract>
This gives the following error on upload
Error: cvc-complex-type.2.4.a: Invalid content was found starting with element ‘jats:abstract’. One of ‘{“http://0-www-crossref-org.libus.csd.mu.edu/schema/5.3.0”:citation_list}’ is expected.
What’s wrong please?
Just to be clear - the opening tags are in reality enclosed in < … > .
The deposit and error message can be seen here https://0-doi-crossref-org.libus.csd.mu.edu/servlet/submissionAdmin?sf=detail&submissionID=1677100787
Thanks Neil
eatoni
4
HI Neil,
Thanks for the forum message.
This is our schema requirement for report papers here Schema documentation for crossref5.3.1.xsd
As per this schema guide, you had placed the abstract element in the wrong part of the XML file, hence the deposit failing.
Please refer below for the correct version of where you need to have placed the abstract metadata in your XML file
<?xml version="1.0" encoding="UTF-8"?>
<doi_batch version="5.3.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://0-www-crossref-org.libus.csd.mu.edu/schema/5.3.0 https://0-www-crossref-org.libus.csd.mu.edu/schemas/crossref5.3.0.xsd"
xmlns="http://0-www-crossref-org.libus.csd.mu.edu/schema/5.3.0" xmlns:jats="http://0-www-ncbi-nlm-nih-gov.libus.csd.mu.edu/JATS1">
<head>
<doi_batch_id>test.x</doi_batch_id>
<timestamp>20250222013</timestamp>
<depositor>
<depositor_name>XYZ</depositor_name>
<email_address>xxxxxxx@xxx.com</email_address>
</depositor>
<registrant>XYZ</registrant>
</head>
<body>
<report-paper>
<report-paper_metadata language="en">
<contributors>
<person_name sequence="first" contributor_role="author">
<given_name>Neil</given_name>
<surname>McNaughton</surname>
</person_name>
</contributors>
<titles>
<title>Schlumberger iDiscover Forum 2002</title>
</titles>
<edition_number>0</edition_number>
<jats:abstract>
<jats:p>Around 350 users and some 200 Schlumberger folks attended Schlumbergers
European Forum ... </jats:p>
</jats:abstract>
<publication_date media_type="online">
<month>01</month>
<day>01</day>
<year>2002</year>
</publication_date>
<publisher>
<publisher_name>Oil IT Journal</publisher_name>
<publisher_place>Sevres, France</publisher_place>
</publisher>
<publisher_item>
<identifier id_type="report-number">SchlumbergerMadrid2002.pdf</identifier>
</publisher_item>
<doi_data>
<doi>10.69894/900016</doi>
<resource>https://oilit.com/techwatch/2002_SchlumbergerMadrid2002.pdf</resource>
</doi_data>
</report-paper_metadata>
</report-paper>
</body>
</doi_batch>
Note: I have excluded the registrant name and email from above for privacy reasons.
Do let us know if you have any additional questions.
Evans
2 Likes
That’s phenomenal ! many thanks
Neil