Menu

Archive

Allan Cunliffe
Attachments
Archive.png (15357 bytes)

Introduction

This is a schema to to represent archive files, such as .zip, .tar or .gz. The specification consists of a description of the XML schema and an example of an instance of the schema.

Target namespace

http://preservation.naa.gov.au/archive/1.0

Declared namespaces

Prefix Namespace

xsd
http://www.w3.org/2001/XMLSchema

archive
http://preservation.naa.gov.au/archive/1.0

Schema

The following sections describe the archive XML schema.

Diagram

XML Schema Definition

<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:archive="http://preservation.naa.gov.au/archive/1.0"
targetNamespace="http://preservation.naa.gov.au/archive/1.0" 
version="1.0">
<xsd:annotation>
 <xsd:documentation xml:lang="en">
  archive. A schema to represent archive files, such as .zip, .tar or .gz.
  Developed by the National Archives of Australia. Copyright 2010
  Commonwealth of Australia.
 </xsd:documentation>
</xsd:annotation>
<xsd:element name="archive">
 <xsd:complexType>
   <xsd:sequence>
     <xsd:element name="entry">
       <xsd:complexType>
         <xsd:attribute name="original_path" type="xsd:string" use="optional" />
         <xsd:attribute name="original_file_date" type="xsd:string" use="optional" />
         <xsd:attribute name="original_size" type="xsd:int" use="optional" />
         <xsd:attribute name="output_filename" type="xsd:string" use="optional" />
       </xsd:complexType>
     </xsd:element>
   </xsd:sequence>
 </xsd:complexType>
</xsd:element>
</xsd:schema>

Example

The following is an instance of the archive schema.

<archive:archive xmlns:archive="http://preservation.naa.gov.au/archive/1.0">
<archive:entry 
archive:original_path="xena help/content/commands.html" 
archive:original_file_date="20090603T160716+1000" 
archive:original_size="1198" 
archive:output_filename="20100622135051317-archive_entry8006084860263661741commands.html-08dabb92.xena"/>
<archive:entry 
archive:original_path="xena help/content/CVS/Entries" 
archive:original_file_date="20090603T140904+1000" 
archive:original_size="1160" 
archive:output_filename="20100622135051586-archive_entry1013012505246104037Entries-fe02ef6e.xena"/>
<archive:entry 
archive:original_path="xena help/content/CVS/Entries.Extra" 
archive:original_file_date="20090603T140904+1000" 
archive:original_size="605" 
archive:output_filename="20100622135051619-archive_entry42236177708479939Entries.Extra-4b3399c9.xena"/>
</archive:archive>

Related

Wiki: Xena_schemas