<?xml version="1.0" encoding="UTF-8" ?>

<!ELEMENT Catalog (File|Symlink|Device|Pipe|Socket|Directory)*>
<!ATTLIST Catalog format CDATA #FIXED "1.3">

        <!-- describes single Extended Attribute -->
<!ELEMENT EA_entry EMPTY>
<!ATTLIST EA_entry ea_name CDATA #REQUIRED>

<!ELEMENT Attributes (EA_entry)*>
	<!-- saved (data saved),                                                     -->
	<!-- referenced (if entry is present but not saved; for differential archive)-->
	<!-- deleted (if entry is marked deleted)                                    -->
<!ATTLIST Attributes data (saved|referenced|deleted) #REQUIRED>
	<!-- saved (if extended attributes are saved),                               -->
    <!-- referenced (if entry is present but not saved; for differential archive)    -->
	<!-- absent (if no extended attributes are associated to this entry          -->
<!ATTLIST Attributes metadata (saved|referenced|absent|patch|inode-only) #REQUIRED>
<!ATTLIST Attributes user CDATA #REQUIRED>       <!-- string, user name              -->
<!ATTLIST Attributes group CDATA #REQUIRED>      <!-- string, group name             -->
<!ATTLIST Attributes permissions CDATA #REQUIRED>    <!-- string, posix permissions      -->
<!ATTLIST Attributes atime CDATA #REQUIRED>      <!-- decimal, posix time            -->
<!ATTLIST Attributes mtime CDATA #REQUIRED>      <!-- decimal, posix time            -->
<!ATTLIST Attributes ctime CDATA #REQUIRED>      <!-- decimal, posix time            -->

<!ELEMENT Directory (Attributes,(File|Symlink|Device|Pipe|Socket|Directory)*)>
<!ATTLIST Directory name CDATA #REQUIRED>        <!-- string, entry name             -->

<!ELEMENT Symlink (Attributes)>
<!ATTLIST Symlink name CDATA #REQUIRED>          <!-- string, entry name             -->
<!ATTLIST Symlink target CDATA "" >              <!-- string, symbolic link target   -->

<!ELEMENT Device (Attributes)>
<!ATTLIST Device name CDATA #REQUIRED>           <!-- string, entry name             -->
<!ATTLIST Device type (character|block) #REQUIRED>
<!ATTLIST Device major CDATA "" >                <!-- decimal, major number          -->
<!ATTLIST Device minor CDATA "" >                <!-- decimal, minor number          -->

<!ELEMENT File (Attributes)>
<!ATTLIST File name CDATA #REQUIRED>             <!-- string, entry name             -->
<!ATTLIST File size CDATA "" >                   <!-- decimal, file size in bytes    -->
<!ATTLIST File stored CDATA "" >                 <!-- decimal, stored size in bytes  -->
<!ATTLIST File crc CDATA "" >                    <!-- hexadecimal, crc sum of file   -->
<!ATTLIST File dirty CDATA "" >                  <!-- string, whether file changed during backup -->
<!ATTLIST File sparse CDATA "" >	         <!-- string, whether file is sparse -->
<!ATTLIST File delta_sig CDATA "" >              <!-- string, whether delta signature is present -->
<!ATTLIST File patch_base_crc CDATA "">          <!-- hexadecimal, crc sum of the delta patch when present -->
<!ATTLIST File patch_result_crc CDATA "">        <!-- hexadecimal, crc sum of the delta patch resulting file when present -->

<!ELEMENT Socket (Attributes)>
<!ATTLIST Socket name CDATA #REQUIRED>           <!-- string, entry name             -->

<!ELEMENT Pipe (Attributes)>
<!ATTLIST Pipe name CDATA #REQUIRED>             <!-- string, entry name             -->
