VOID UPDATE

VOID expressions return no value but are used to perform other work. The VOID UPDATE expression changes the value of a property.

The name of the property to update is given in a PROP_NAME expression node, and the new value is given in a sub-expression of type INTEGER, FLOAT, STRING, or PROPERTY. If the property has multiple values, all values are changed.

See the EXPRESSION element for DTD and attribute information.

Example

This example updates records with the Endeca.Document.Body property by replacing "cwd" in paths with the actual current working directory.

<EXPRESSION TYPE="VOID" NAME="UPDATE">
   <EXPRNODE NAME="PROP_NAME" VALUE="Endeca.Document.Body"/>
   <EXPRESSION TYPE="STRING" NAME="REPLACE">
      <EXPRNODE NAME="TARGET" VALUE="[cwd]"/>
      <EXPRNODE NAME="REPLACEMENT" VALUE="&cwd;"/>
      <EXPRESSION TYPE="PROPERTY" NAME="IDENTITY">
         <EXPRNODE NAME="PROP_NAME" VALUE="Endeca.Document.Body"/>
      </EXPRESSION>
   </EXPRESSION>
</EXPRESSION>