Activity Type: XML
Bulk load a set of XMLDB resources into a collection. XMLDB resources are XML documents which are stored within XMLDB collections (not to be confused with an XMLDB data resource itself or data service resources). The XMLDB resources can be provided by a client or produced via another activity.
<xmlBulkLoad name="bulk"> <collection createIfNotExists="true"> newCollection </collection> <resourceSet> <resource> <resource1>Some Content</resource1> </resource> <resource> <resource2>Some Content</resource2> </resource> </resourceSet> <output name="outputStream"/> </xmlBulkLoad>
<xmlBulkLoad name="bulk"> <collection createIfNotExists="true"> newCollection </collection> <fromLocal from="dataToInsert"/> <output name="outputStream"/> </xmlBulkLoad>
Element xmlBulkLoad:
<resourceSet>The final block must be a resource set footer in the following format:
</resourceSet>These header and footer blocks must contain no other data. They must be terminated by the '\n' character and must contain no other whitespace.
The data blocks between the header and footer blocks must contain the XML of the resources to be added. Each block must contain a single resource and each resource must be within a single block. The single root element of each XML block must be called resource. This root element will be stripped off when the resource is added to the collection. An example of a data block is:
<resource> <entry id="1"> <name>Ally Antonioletti</name> <address>826 Hume Crescent, Southampton</address> <phone>01670061244</phone> </entry> </resource>
<resultCount>N</resultCount>where N is the number of resources inserted.
This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.XMLDBCollectionProvider
The use of this activity requires the following jar to be loaded on the server:
OGSA-DAI/schema/ogsadai/xsd/activities/xml_bulk_load.xsd
uk.org.ogsadai.activity.xmldb.XMLBulkLoadActivity
uk.org.ogsadai.client.toolkit.activity.xmldb.XMLBulkLoad
Up: Activities | ||
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |