if (NS_FAILED(rv)) return rv;
if (NS_FAILED(rv)) return NS_OK;
nsBookmarksService::WriteBookmarks(nsIRDFDataSource *ds, nsIRDFResource *root){	nsresult rv;	nsFileSpec bookmarksFile;	rv = GetBookmarksFile(&bookmarksFile);	if (NS_FAILED(rv)) return rv;	rv = NS_ERROR_FAILURE;	nsOutputFileStream	strm(bookmarksFile);	if (strm.is_open())	{		strm << "<!DOCTYPE NETSCAPE-Bookmark-file-1>\n";		strm << "<!-- This is an automatically generated file.\n";		strm << "It will be read and overwritten.\n";		strm << "Do Not Edit! -->\n";		strm << "<TITLE>Bookmarks</TITLE>\n";		strm << "<H1>Bookmarks</H1>\n\n";				rv = WriteBookmarksContainer(ds, strm, root, 0);	}	return(rv);}