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

Rename Node

Description and syntax

Renames an element, attribute, or processing instruction node.

 

rename node targetNode as name

 

Details

 

The expression targetNode must point to a single target node, which can be an element, attribute, or processing instruction.
The expression name must evaluate to a QName or string.
If a QName is constructed, the mandatory namespace is declared locally.

 

Examples

 

rename node /book/title as 'header-1'

 

rename node /book/title as QName("http://www.altova.com/xquf""header-1")

 


© 2019 Altova GmbH