searchhippo = cfhttp.filecontent; searchhippo = replace(searchhippo, "", "^endresult^", "ALL"); //position to start in the file begin = 1; while(begin NEQ 0){ begin = FindNoCase("^result^", searchhippo, begin); if(begin NEQ 0){ end = FindNoCase("^endresult^", searchhippo, begin); hippo = mid(searchhippo, begin, end - begin); // return the title t1 = FindNoCase("<![CDATA[", hippo, 1); t1 = t1 + 16; t2 = FindNoCase("]]>", hippo, t1); SHtitle = mid(hippo, t1, t2 - t1); // return the description t1 = FindNoCase("", hippo, t1); SHdescription = mid(hippo, t1, t2 - t1); // return the target url t1 = FindNoCase("", hippo, t1); SHurl = mid(hippo, t1, t2 - t1); // return the display url t1 = FindNoCase("", hippo, t1); SHdurl = mid(hippo, t1, t2 - t1); // write the result to the page writeoutput("

"&SHtitle&"
"); writeoutput(""&SHdescription&"
"); writeoutput(""&SHdurl&"

"); begin = end + 1; } }