Replace Value of Node

www.altova.com Print this Topic Previous Page Up One Level Next page

Home >  User Guide and Reference > XQuery > XQuery Update Facility > Update Operations and Syntax >

Replace Value of Node

Description and syntax

Replaces the value of a node with the string value of a sequence of items.

 

replace value of node targetNode with items

 

Details

 

The expression targetNode must point to a single target node.
The expression items must return a sequence of items.
The contents of the target node are replaced by the string value of the sequence returned by the items expression. This means that the target node will contain one text node only.

 

Examples

 

for $i in //title return

replace value of node $i with ('Draft Title')

 


© 2019 Altova GmbH