Changed xml parsing from grep to xml_grep