Skip to main content
ExLibris

Knowledge Assistant

BETA
 
  • Subscribe by RSS
  • Back
    Rosetta

     

    Ex Libris Knowledge Center
    1. Search site
      Go back to previous article
      1. Sign in
        • Sign in
        • Forgot password
    1. Home
    2. Rosetta
    3. Knowledge Articles
    4. Ingesting METS xml as a file fails validation with error: "Errors returned during metadata extraction; can't find the declaration of element 'mets:mets"

    Ingesting METS xml as a file fails validation with error: "Errors returned during metadata extraction; can't find the declaration of element 'mets:mets"

    1. Last updated
    2. Save as PDF
    3. Share
      1. Share
      2. Tweet
      3. Share
    1. Description
    2. Resolution
    3. Additional Information
    • Product: Rosetta
    • Product Version: v5.3
    • Relevant for Installation Type: Local

    Description

    It is possible to ingest a METS xml as a file_stream (in addition to the main METS in the content folder).

    Note that when you try to ingest a mets.xml file as a file_stream it will fail validation with the following error (e.g.):

     [error: Errors returned during metadata extraction; can't find the declaration of element 'mets:mets']

    More > MD Error in TA workbench > Validation for "mets.xml" you get the following error: "An Error Occurred - Please contact system staff"

    Resolution


    The METS xml ingested as a file in the content/streams directory has no declaration of the xsd (xmlns:xsd="http://www.loc.gov/standards/mets/mets.xsd">).

    According to section 4, Validation, http://jhove.sourceforge.net/xml-hul.html, the jhove xml hul validation should not be applied and only well formed-ness should be checked.

    Even local jhove xml hul gives the same result as Rosetta (i.e. well formed, not valid).

    So, if you don’t need to have the METS xml validated against the xsd in the validation stage of Rosetta ingest, you could add a "MD Error" exception in Rosetta to ignore this.

    If you feel you do need to validate these files with jhove’s xml hul, please refer to the "How to create a new version of xml hul plugin" link in the Additional Information section below.

    Additional Information

    The How to create a new version of xml hul plugin includes the METS xsd in the xml catalog so that the validation can be performed against a locally-stored xsd during Rosetta’s validation stage.

     

     


    • Article last edited: 21-Dec-2017
    View article in the Exlibris Knowledge Center
    1. Back to top
      • Depositing and Exporting Files with Special Characters in the Filename
      • Institutions Codes
    • Was this article helpful?

    Recommended articles

    1. Article type
      Topic
      Content Type
      Knowledge Article
      Language
      English
      Product
      Rosetta
    2. Tags
      1. MD Error
      2. METS
      3. Validation
      4. XML
    1. © Copyright 2025 Ex Libris Knowledge Center
    2. Powered by CXone Expert ®
    • Term of Use
    • Privacy Policy
    • Contact Us
    2025 Ex Libris. All rights reserved