getBookmarks(0, NULL, $userservice->getCurrentUserId(), $tag, NULL, getSortOrder()); $currentuser = $userservice->getCurrentUser(); $currentusername = $currentuser[$userservice->getFieldName('username')]; // Set up the XML file and output all the posts. header('Content-Type: text/html'); echo ''."\r\n"; echo ''; echo ''."\r\n"; echo '
'."\r\n"; foreach($bookmarks['bookmarks'] as $row) { if (is_null($row['bDescription']) || (trim($row['bDescription']) == '')) $description = ''; else $description = 'description="'. filter($row['bDescription'], 'xml') .'" '; $taglist = ''; if (count($row['tags']) > 0) { foreach($row['tags'] as $tag) $taglist .= convertTag($tag) .','; $taglist = substr($taglist, 0, -1); } else { $taglist = 'system:unfiled'; } echo "\t
'; ?>