EPrints Technical Mailing List Archive
See the EPrints wiki for instructions on how to join this mailing list and related information.
Message: #10146
< Previous (by date) | Next (by date) > | < Previous (in thread) | Next (in thread) > | Messages - Most Recent First | Threads - Most Recent First
Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- To: eprints-tech@ecs.soton.ac.uk
- Subject: Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: Yuri <yurj@alfa.it>
- Date: Wed, 18 Jun 2025 11:58:19 +0200
check the bin/import utility in EPrints. Big import should be done using the command line. Also, you cannot paste binaries in text forms, sure something will broke.
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.Hi,
Maybe if it's only 1 item, it's okay to add the <eprint> and </eprint> tags. But if the data I want to export is tens of thousands, of course this is a waste of time.
RegardsAgung PW
On Wed, 18 Jun 2025 at 15:07, David R Newman <drn@ecs.soton.ac.uk> wrote:
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_ListHi Agung,
I have seen this when I have exported a single item and try to reimport but not sure how you got this with a full archive export. There is no <eprints> tag enclosing the set of <eprint> records. Usually you can just edit the file to add these <eprints> tags at the top (after the <?xml ... line) and then right at the end, so it looks like:
<?xml version='1.0' encoding='utf-8'?>
<eprints xmlns='http://eprints.org/ep2/data/2.0'>
<eprint id='https://eprints.example.org/1'>
...
</eprint>
<eprint id='https://eprints.example.org/2'>
....
</eprint>
</eprints>
Regards
David Newman
On 18/06/2025 08:39, Alan.Stiles [He/Him/They] wrote:
CAUTION: This e-mail originated outside the University of Southampton.CAUTION: This e-mail originated outside the University of Southampton.It looks like your file that you are trying to import isn’t correctly formatted, from the line
Unexpected tag: expected <eprints> found <eprint>
If you export just one file from your existing system it will give you an example file to compare against. I’m sure there’s an entry in the wiki for it but I can’t find it at the moment.
Alan
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
*** Archive: https://www.eprints.org/tech.php/
*** EPrints community wiki: https://wiki.eprints.org/
*** Options: https://wiki.eprints.org/w/Eprints-tech_Mailing_List *** Archive: https://www.eprints.org/tech.php/ *** EPrints community wiki: https://wiki.eprints.org/
- References:
- [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: "Alan.Stiles [He/Him/They]" <alan.stiles@open.ac.uk>
- Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: David R Newman <drn@ecs.soton.ac.uk>
- Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- From: "Agung Prasetyo W." <prazetyo@gmail.com>
- [EP-tech] Export and import xml file with embeded from old eprints to new version
- Prev by Date: [EP-tech] coin DOI with Datacite
- Next by Date: Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- Previous by thread: Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- Next by thread: Re: [EP-tech] Export and import xml file with embeded from old eprints to new version
- Index(es):