Xena_schemas

Allan Cunliffe Daniel Black

The XML schemas used by Xena are responsible for two things:

  • Normalising files (creating Xena files)- Xena creates metadata according to a schema
  • Exporting Xena files - Xena creates an instance of from files normalised using that particular schema.

Normalising

When normalising a file, Xena does the following:

1. Determines the file format according to a series of checks.

2. Based on the determined file format, either:

  • converts the data object to preservation file format, or
  • if it is already a preservation file format, preserves it as is.

3. Stores the data object, with its preservation metadata, as a Xena file, according to the corresponding XML schema for the determined file format. This step involves base64 encoding of the binary data which is then embedded into the Xena file.

Exporting

When exporting a Xena file, Xena does the following:

1. Finds the XML schema that created the Xena XML file during normalisation.

2. Unwraps the metadata XML from the file, and finds the tag that is the opening tag of the actual content.

3. Extracts the base64 content, to recreate the preservation file format.

XML Schemas


Related

Wiki: Archive
Wiki: Audio
Wiki: Binary
Wiki: Default_package_wrapper
Wiki: Email
Wiki: Introduction_to_Xena_schemas
Wiki: JPEG
Wiki: Mailbox
Wiki: Main_Page
Wiki: Multipage
Wiki: NAA
Wiki: Open_document
Wiki: PNG
Wiki: Package
Wiki: Plaintext
Wiki: Project
Wiki: Website
Wiki: Wrapper