Saturday, April 02, 2011 at 9:18 PM.

feedhoseSuite.setupXmlReturn

on setupXmlReturn (pta=nil) {
	<<Changes
		<<12/15/09; 10:07:15 AM by DW
			<<Created. This is what a web page needs to do in order to return XML, not have it rendered as HTML.
	if pta == nil {
		pta = html.getpagetableaddress ()};
	wp.newTextObject ("{bodytext}", @pta^.template);
	pta^.autoParagraphs = false;
	pta^.clayCompatibility = false;
	pta^.activeUrls = false;
	pta^.processMacros = false;
	pta^.expandGlossaryItems = false;
	pta^.responseHeaders.["Content-Type"] = "text/xml"}
<<bundle //test code
	<<setupXmlReturn ()



This listing is for code that runs in the OPML Editor environment. I created these listings because I wanted the search engines to index it, so that when I want to look up something in my codebase I don't have to use the much slower search functionality in my object database. Dave Winer.