prototyped removing of xml from program