Added custom grep command and a function to clean xml