if you have a xml file and want to clean if from lot of things you can do it this way.
2.) activate *bookmark line
3.) enter your searchterms that your lines have you want to remove.
4.) mark all
5.) search->bookmark->remove bookmarked lines