Searching and replacing text in xml and text