Monday, November 08, 2010 at 12:00 AM.

scripting2Suite.editor.getOutline

on getOutline (url) {
	<<Changes
		<<6/10/10; 11:59:02 AM by DW
			<<Created. 
	local (adrdata = scripting2suite.init (), opmltext);
	local (username = adrdata^.editor.prefs.username);
	local (password = string (adrdata^.editor.prefs.password));
	local (server = string (adrdata^.editor.prefs.server));
	opmltext = [server].scripting2.getOutline (username, password, url);
	adrdata^.editor.stats.flPasswordValid = true;
	return (opmltext)};
bundle { //test code
	url = "http://scripting.com/stories/2010/06/10/myScripting2Todo.html";
	url = "http://scripting.com/blogroll";
	url = "http://scripting.com/hometemplate";
	url = "http://scripting.com/storytemplate";
	opmltext = getoutline (url);
	op.xmltooutline (opmltext, @scratchpad.serveroutline);
	edit (@scratchpad.serveroutline)}



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.