> Is there any wy to get the "internal" result generator (htsearch) to > spew out valid XML / XHTML ... I would like to use Ajax to parse the > return results slightly better than as text ... but the current > version outputs "invalid" <IMG> tags ... as they are not closed > <IMG ..... /> but <IMG .....> ... which causes XML parsers to have a > fit.
Just edit the files in <installdir>/templates so htdig outputs whatever format you prefer. I have it output XML so the results can be parsed and displayed in a custom way, and the same idea would work for Ajax calls. For example, my templates/search_results.html looks like: <search> <words>$&(WORDS)</words> <keywords>$&(KEYWORDS)</keywords> <matches>$&(MATCHES)</matches> <pages>$&(PAGES)</pages> <page>$&(PAGE)</page> <firstindex>$&(FIRSTDISPLAYED)</firstindex> <lastindex>$&(LASTDISPLAYED)</lastindex> <results> $(HTSEARCH_RESULTS) </results> <version>$&(VERSION)</version> </search> And my templates/search_detail.html looks like: <result> <current>$&(CURRENT)</current> <title>$&(TITLE)</title> <excerpt>$&(EXCERPT)</excerpt> <url>$&(URL)</url> <modified>$&(MODIFIED)</modified> <size>$&(SIZE)</size> <percent>$&(PERCENT)</percent> <rating>$&(NSTARS)</rating> <score>$&(SCORE)</score> <hopcount>$&(HOPCOUNT)</hopcount> <docid>$&(DOCID)</docid> </result> -- Jase Wells Applications Specialist, Prophet Tel: (415) 677-0909 x2832 Fax: (415) 677-9020 Email: [EMAIL PROTECTED] www.prophet.com Building Great Brands and Businesses ------------------------------------------------------- This SF.net email is sponsored by: Splunk Inc. Do you grep through log files for problems? Stop! Download the new AJAX search engine that makes searching your log files as easy as surfing the web. DOWNLOAD SPLUNK! http://sel.as-us.falkag.net/sel?cmd=lnk&kid3432&bid#0486&dat1642 _______________________________________________ ht://Dig general mailing list: <htdig-general@lists.sourceforge.net> ht://Dig FAQ: http://htdig.sourceforge.net/FAQ.html List information (subscribe/unsubscribe, etc.) https://lists.sourceforge.net/lists/listinfo/htdig-general