<?xml version="1.0"?>
<xs:schema attributeFormDefault="unqualified" elementFormDefault="qualified" xmlns:xs="http://www.w3.org/2001/XMLSchema">
  <xs:simpleType name="nlong">
    <xs:union>
      <xs:simpleType>
        <xs:restriction base="xs:int" />
      </xs:simpleType>
      <xs:simpleType>
        <xs:restriction base="xs:string">
          <xs:length value="0" />
        </xs:restriction>
      </xs:simpleType>
    </xs:union>
  </xs:simpleType>
  <xs:simpleType name="guid">
    <xs:annotation>
      <xs:documentation xml:lang="en">
        The representation of a GUID, generally the id of an element.
      </xs:documentation>
    </xs:annotation>
    <xs:restriction base="xs:string">
      <xs:pattern value="[a-fA-F0-9]{8}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{4}-?[a-fA-F0-9]{12}" />
    </xs:restriction>
  </xs:simpleType>
  <xs:element name="Root">
    <xs:complexType>
      <xs:all>
        <xs:element name="Version" type="guid" />
        <xs:element name="OriginalDocumentGuid" type="guid" />
        <xs:element name="DocumentUniqueIdentifier" type="guid" />
        <xs:element minOccurs="0" name="Description" />
        <xs:element minOccurs="0" name="CountDays" type="nlong" />
      </xs:all>
    </xs:complexType>
  </xs:element>
</xs:schema>