Collaborama About Help Contact Anonymous [login] Source: site.view [edit] Function name: renderAsXML Arguments: content,outerTag,itemTag Description: Renders a list of objects (content) as (embeddable) XML Page type: webl Render function: Module: siteutil Page source: var res = " <" + outerTag + ">\n"; every item in content do res = res + " <" + itemTag + ">\n"; every field in item do res = res + " <" + field + ">" + item[field] + "</" + field + ">\n" end; res = res + " </" + itemTag + ">\n" end; res = res + " </" + outerTag + "\n"