<?xml version="1.0"?>
<schema xmlns="http://www.w3.org/2001/XMLSchema" attributeFormDefault="unqualified"
        elementFormDefault="qualified"
        targetNamespace="http://www.opm.gov/feddata/grdr/ManagedRecordMetadata-5.0"
        version="0.2">
	<annotation>
		<documentation>XML schema for managed record metadata.</documentation>
	</annotation>
	<element name="Metadata">
		<annotation>
			<documentation>Defines metadata for both stored and transferred records.  
			Metadata includes any information that should be allowed to change without modifying 
			the record itself, and includes certification and audit information.
			</documentation>
		</annotation>
		<complexType>
			<sequence>
				<element name="AuditInfo">
					<annotation>
						<documentation>Information regarding record changes and lifecycle events such as transfers, validations, updates, and consolidations.  Note: detailed change history (element, old value, new value) is not stored because it can easily be calculated when needed by differencing versions.</documentation>
					</annotation>
					<complexType>
						<sequence>
							<element name="Created" type="dateTime">
								<annotation>
									<documentation>When the record was created.  Note: creation info is generally the same for all versions of an item.</documentation>
								</annotation>
							</element>
							<element name="CreatedBy" type="string">
								<annotation>
									<documentation>Identifies the process, person, or organization that created the record.  Note: this element is informational and is not used for access control.</documentation>
								</annotation>
							</element>
							<element name="Modified" minOccurs="0" type="dateTime">
								<annotation>
									<documentation>When the item was modified, e.g., when the current version was created/changed.</documentation>
								</annotation>
							</element>
							<element name="ModifiedBy" type="string" minOccurs="0">
								<annotation>
									<documentation>Similar to CreatedBy.</documentation>
								</annotation>
							</element>

							<!--Incl legal custody? -->
							<element name="Version" type="integer" minOccurs="0">
								<annotation>
									<documentation>The system-assigned version number.  Used to identify different versions of the same record.  The version number begins at one and is incremented every time the record is checked in.  If supplied by a data provider with a transferred record, the version number will be accepted if and only if it is greater than the current version in the repository.</documentation>
								</annotation>
							</element>
							<element name="VersionDescription" minOccurs="0">
								<annotation>
									<documentation>The textual description of the version, e.g., a summary of changes from the prior version.  May be provided by a user when the version is checked in, or automatically generated by the system when a new version is received.</documentation>
								</annotation>
							</element>
						</sequence>
					</complexType>
				</element>
			</sequence>
		</complexType>
	</element>
</schema>