Harvest Policy Schema
The XML schema file for validating policy files follows:
<?xml version="1.0" encoding="UTF-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
xmlns:jxb="http://java.sun.com/xml/ns/jaxb"
jxb:version="2.0">
<xsd:element name="path" type="xsd:string"/>
<xsd:element name="file" type="xsd:string"/>
<xsd:element name="filePattern" type="xsd:string"/>
<xsd:element name="xPath" type="xsd:string"/>
<xsd:attribute name="objectType" type="xsd:string"/>
<xsd:attribute name="prefix" type="xsd:string"/>
<xsd:attribute name="uri" type="xsd:string"/>
<xsd:attribute name="default" type="xsd:boolean" default="false"/>
<xsd:element name="directories" type="Directory"/>
<xsd:complexType name="Directory">
<xsd:sequence>
<xsd:element ref="path" maxOccurs="unbounded"/>
<xsd:element ref="filePattern" minOccurs="0" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="bundles" type="Bundle"/>
<xsd:complexType name="Bundle">
<xsd:sequence>
<xsd:element ref="file" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="collections" type="Collection"/>
<xsd:complexType name="Collection">
<xsd:sequence>
<xsd:element ref="file" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="namespace" type="Namespace"/>
<xsd:complexType name="Namespace">
<xsd:attribute ref="prefix" use="required"/>
<xsd:attribute ref="uri" use="required"/>
<xsd:attribute ref="default"/>
</xsd:complexType>
<xsd:element name="productMetadata" type="ProductMetadata"/>
<xsd:complexType name="ProductMetadata">
<xsd:sequence>
<xsd:element ref="xPath" maxOccurs="unbounded"/>
</xsd:sequence>
<xsd:attribute ref="objectType" use="required"/>
</xsd:complexType>
<xsd:element name="candidates" type="Candidate"/>
<xsd:complexType name="Candidate">
<xsd:sequence>
<xsd:element ref="namespace" minOccurs="0" maxOccurs="unbounded"/>
<xsd:element ref="productMetadata" maxOccurs="unbounded"/>
</xsd:sequence>
</xsd:complexType>
<xsd:element name="policy" type="Policy"/>
<xsd:complexType name="Policy">
<xsd:sequence>
<xsd:element ref="bundles" minOccurs="0"/>
<xsd:element ref="collections" minOccurs="0"/>
<xsd:element ref="directories" minOccurs="0"/>
<xsd:element ref="candidates"/>
</xsd:sequence>
</xsd:complexType>
</xsd:schema>