The XML schemas used by Xena are responsible for two things:
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:
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.
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.