in reply to Re^2: How do I delete a specific element from an XML file
in thread How do I delete a specific element from an XML file

Probem solve! Just need to put the command "exit 1" outside of the loop with a condition and everything works welll.
Example:exit 1 if isDel;