Source: site.view [edit]
Function name: toOPML
Arguments: data
Description: Converts data expressed in XOXO, XML, RSS, ATOM, or JSON and converts it to OPML (Outline Processor Markup Language)
Page type: webl
Render function:  
Module: global

Page source:

var s = "";
if Type(data) == "page" then
   s = Markup(data)
elsif Type(data) == "string" then
   s = data;
end;

s = Url_Encode(s);

var args = [. data = s, output="opml", `xn_auth`="no" .];

var url = "http://xoxotools.ning.com/outlineconvert.php";
var P;

var e = Trap(P = PostURL(url, args));
e;