Activity Type: XML
Run an XUpdate update on an XMLDB data resource. The update can be run upon an individual XMLDB resource contained within a collection in the XMLDB data resource or over an entire collection of XMLDB resources. Please note that 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).
<xUpdateStatement name="statement"> <collection>musicians/folksingers</collection> <resourceId>someResource</resourceId> <expression> <xu:modifications version="1.0" xmlns:xu="http://www.xmldb.org/xupdate"> <xu:update select="/entry/phone">123123123123</xu:update> </xu:modifications> </expression> <outputStream name="statementOutput"/> </xUpdateStatement>
Element xUpdateStatement:
<modifiedNodes>N</modifiedNodes>where N is the number of modified nodes.
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/xupdate_statement.xsd
uk.org.ogsadai.activity.xmldb.XUpdateStatementActivity
uk.org.ogsadai.client.toolkit.activity.xmldb.XUpdate
Up: Activities | ||
© International Business Machines Corporation, 2002-2006 | © The University of Edinburgh, 2002-2006 |