Activity - xUpdateStatement

Activity Type: XML

Description

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).

Example

<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>

Specification

Element xUpdateStatement:

Input and Output Types

Data Resource Accessor

This activity requires a data resource accessor that implements the following interface: uk.org.ogsadai.dataresource.XMLDBCollectionProvider

Required Libraries

The use of this activity requires the following jar to be loaded on the server:

XML Schema

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

Class

uk.org.ogsadai.activity.xmldb.XUpdateStatementActivity

Client Toolkit Class

uk.org.ogsadai.client.toolkit.activity.xmldb.XUpdate