Deleting XML nodes
Now that we've learned how to insert nodes, it is only fair that we have a walk-through on how to delete nodes. We inserted the format
node in the previous section. Just for fun, we will be deleting it in this section. Since we will be deleting it for all records, we will only be specifying the node as book/format
. If we wanted to delete the node for a specific record only, we would specify this as book[2]/format
.
Let's start this walk-through by executing the following steps:
- Add a Step action on line 34, ensuring it is aligned with the previous Step action on line 30.
- Set the Title property of the Step action on line 34 to
Delete a Node
. Your development interface should look like this: - Click on Save.
- To delete the
format
node, drag the Delete node action from the XML package just below line 34, ensuring it is within the Step action on line 34. - Set the following properties for the XML...