Activity - xmlBulkLoad

Activity Type: XML

Description

Bulk load a set of resources into an XMLDB data resource. The collection can be created before importing the documents.

Examples

<xmlBulkLoad name="bulkload">
  <collection>myCollection</collection>
  <resourceSet>
     <resource>
        <entry id="1" xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/littleblackbook" src:key="1">
           <name>Ally Antonioletti</name>
           <address>826 Hume Crescent, Southampton</address>
           <phone>01670061244</phone>
        </entry>
     </resource>
     <resource>
        <entry id="10" xmlns:src="http://xml.apache.org/xindice/Query" src:col="/db/littleblackbook" src:key="10">
           <name>Martin Laws</name>
           <address>224 Palansuriya Lane, Winchester</address>
           <phone>06686142062</phone>
        </entry>
     </resource>
  </resourceSet>
  <output name="results"/>
</xmlBulkLoad>
<xmlBulkLoad name="bulkload">
   <collection createIfNotExists="true">aNewCollection</collection>
   <fromLocal from="data"/>
   <output name="results"/>
</xmlBulkLoad>
<xmlBulkLoad name="bulkload">
   <fromLocal from="data"/>
   <output name="results"/>
</xmlBulkLoad>

Specification

Element xmlBulkLoad:

XML Schema

OGSA-DAI/schema/ogsadai/xsd/activities/xml_bulk_load.xsd

Implementation

OGSA-DAI/src/java/activities/uk/org/ogsadai/activity/xmldb/XMLBulkLoadActivity.java