Monday, November 08, 2010 at 12:00 AM.
river2Suite.setupXmlReturn
on setupXmlReturn () {
<<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.
local (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.