The delete command
Syntax:
delete expressionThe selected nodes (elements, attributes, or namespaces) are deleted, along with their children and descendants.
The result of the operation can be inspected using the command show.
Example
Given a source document:
<cities> <city name="Berlin" country="DE"/> <city name="Paris" country="FR"/> <city name="Rome" country="IT"/> </cities>The command:
delete //city[@name='Rome']produces the document:
<cities> <city name="Berlin" country="DE"/> <city name="Paris" country="FR"/> </cities>