made some changing and added search_replace method in order to change xml content