The capture broker feature of Case360 allows uploading of files into the Document Management System by pairing the file(s) to an XML file. This purpose is made easier by utilizing WebLogic’s use of XSD to automatically generate XML files that are well-formed.

Below is a sample XSD that defines the pattern for a buddy XML.

[sourcecode language=”xml”]
<?xml version="1.0" encoding="ISO-8859-1" ?>

<xs:schema
xmlns:xs="http://www.w3.org/2001/XMLSchema"
xmlns:c360="http://www.aub.com.ph/filestore/Media.xsd"
targetNamespace="http://www.aub.com.ph/filestore/Media.xsd"
elementFormDefault="qualified"
attributeFormDefault="unqualified">

<!– Note: The IRI of the xmlns above need not be a real URL! –>
<xs:annotation>
<xs:documentation xml:lang="en-ph">
Schema for ingestion of XML and document for DMS.
</xs:documentation>
</xs:annotation>

<xs:element name="MediaUpload">
<xs:complexType>
<xs:sequence>
<!– maxOccurs="1" –>
<!– "check" corresponds to the data tag in the XML instance –>
<xs:element name="mediaItem" minOccurs="1" type="c360:RedmapElement" />
</xs:sequence>
</xs:complexType>
</xs:element>

<!– This name attribute will correspond to the Java type in the JPF. –>
<xs:complexType name="RedmapElement" >
<xs:sequence>
<!– document date –>
<xs:element name="documentDate" minOccurs="1" maxOccurs="1" type="xs:string" />

<!– document type –>
<xs:element name="documentType" minOccurs="1" maxOccurs="1" type="xs:string" />

<!– path –>
<xs:element name="filePath" minOccurs="1" maxOccurs="1" type="xs:string" />

<!– reference no –>
<xs:element name="referenceNo" minOccurs="1" maxOccurs="1" type="xs:string" />

<xs:element name="empID" minOccurs="1" maxOccurs="1" type="xs:string" />

<xs:element name="remarks1" minOccurs="1" maxOccurs="1" type="xs:string" />

<xs:element name="remarks2" minOccurs="1" maxOccurs="1" type="xs:string" />

</xs:sequence>
</xs:complexType>
</xs:schema>
[/sourcecode]