Problem during EAD 2002 XML import

Skip to first unread message

Giuseppe Romano

Dec 6, 2021, 1:49:44 AM12/6/21
to AtoM Users
i have this issues when i try to import using EAD 2002 Xml. 
The following issues were encountered:

ibxml error 504 on line 3 in input file: Element ead content does not follow the DTD, expecting (eadheader , frontmatter? , archdesc), got (archdesc )

libxml error 513 on line 19 in input file: ID atom_20261205_actor already defined

libxml error 513 on line 20 in input file: ID atom_20261207_event already defined




In the database, the ID actor and ID event dosn't already exist. A part of my xml file is:

<?xml version="1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE ead PUBLIC "+//ISBN 1-931666-00-8//DTD ead.dtd (Encoded Archival Description (EAD) Version 2002)//EN" "">
<archdesc level="series" relatedencoding="ISAD(G)v2">
<unittitle encodinganalog="3.1.2">Raccolta libraria</unittitle>
<unitid encodinganalog="3.1.1">RAL</unitid>
<dsc type="combined">
<c level="otherlevel">
<unitid encodinganalog="3.1.1">A1_S/11_13</unitid>
<unittitle encodinganalog="3.1.2">I Clowns</unittitle>
<unitdate datechar="Stampa" encodinganalog="3.1.3">1970</unitdate>
<unitdate datechar="Autore" encodinganalog="3.1.3" id="atom_20261205_actor">s.d.</unitdate>
<unitdate datechar="Editore" encodinganalog="3.1.3" id="atom_20261207_event">s.d.</unitdate>
<name id="atom_20261205_actor" role="Autore">Fellini, Federico</name>
<name id="atom_20261207_event" role="Editore">Cappelli editore</name></controlaccess>

The ID is only replicate on controllaccess node. Any suggest?

Have a nice day


Giuseppe Romano

Dec 6, 2021, 2:24:57 AM12/6/21
to AtoM Users
Sorry, i have forgot to indicate my configuration:
Atom version: 2.3
OS: Ubuntu 18.04
php: php7.0-fpm 
web server: Apache

Dan Gillean

Dec 7, 2021, 9:53:03 AM12/7/21
to ICA-AtoM Users
Hi Guiseppe, 

My understanding of the @ID element in EAD 2002 is that it must be unique in the file. If you want to refer to it in another element, you can use @target. From the EAD 2002 tag library:

ID -- An identifier used to name the element so that it can be referred to, or referenced from, somewhere else. Each ID within a document must have a unique value. The ID attribute regularizes the naming of the element and thus facilitates building links between it and other resources.

TARGET -- A pointer to the ID of another element.

That said, there are MANY different valid ways that EAD can be implemented, but not all of them will match what AtoM expects. 

I don't think that AtoM is properly using ID and Target elements together in conjunction right now - but we do use the same ID number and different suffixes ( _actor and _event ) so they are unique. An example: 

 <archdesc level="fonds" relatedencoding="ISAD(G)v2">
      <unittitle encodinganalog="3.1.2">Test multiple creators description</unittitle>
      <unitid encodinganalog="3.1.1">12345</unitid>
      <unitdate id="atom_2004238_event" datechar="distribution" normal="2022/2023" encodinganalog="3.1.3">2022 - 2023</unitdate>
      <unitdate id="atom_2004237_event" datechar="publication" normal="2020-01-01/2021-12-31" encodinganalog="3.1.3">2020 - 2021</unitdate>
      <unitdate id="atom_2004236_event" normal="2006/2018" encodinganalog="3.1.3">2006-2018</unitdate>
      <unitdate id="atom_2004232_event" normal="2002-01-01/2015-12-31" encodinganalog="3.1.3">2002 - 2015</unitdate>

      <physdesc encodinganalog="3.1.5">
        Test extent and medium    </physdesc>
        <corpname>Test repository</corpname>
      <origination encodinganalog="3.2.1">
        <name id="atom_2004236_actor">Creator 2</name>
        <name id="atom_2004232_actor">Creator 1</name>

    <odd type="publicationStatus">
      <name role="Distributor" id="atom_2004238_actor">Distributor 1</name>
      <name role="Publisher" id="atom_2004237_actor">Publisher 1</name>

    <dsc type="combined">

Each ID only appears once - the unitdate elements use the _event suffix, and their related actor (whether creator or other types, as supported in some standards like the Canadian RAD standard) use the _actor suffix. 

In your example, you have used the exact same IDs twice. Hopefully if you change this to match the way AtoM is currently implementing the IDs, it will work. 

Keep in mind that the EAD import mappings may have changed since 2.3 - the example above was created in version 2.6, so there could have been changes since then. 


Dan Gillean, MAS, MLIS
AtoM Program Manager
Artefactual Systems, Inc.
he / him

You received this message because you are subscribed to the Google Groups "AtoM Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

Giuseppe Romano

Dec 7, 2021, 10:15:40 AM12/7/21
to AtoM Users
Hi Dan, Thanks for your help. I edit the xml file and try to import it again
Reply all
Reply to author
0 new messages