Delete Nodes

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 >

Delete Nodes

Description and syntax

Deletes one or more nodes.

 

delete node nodeSequence

delete nodes nodeSequence

 

Details

 

The expression nodeSequence returns a sequence of the node/s to delete. All selected nodes will be marked for deletion.
It does not matter whether the singular node or plural nodes is used. No correspondence is needed with the number of items in nodeSequence.

 

Examples

 

for $i in /book/section return

delete nodes $i/@id 

 


© 2019 Altova GmbH