Element privatemessagefolders = root
.addElement("privatemessagefolders");
for (Iterator<PrivateMessageFolder> it = privateMessageFolders
.iterator(); it.hasNext();) {
PrivateMessageFolder pmf = it.next();
Element privateMessageFolder = privatemessagefolders
.addElement("privatemessagefolder");
privateMessageFolder.addElement("privateMessageFolderId").addCDATA(
formatString("" + pmf.getPrivateMessageFolderId()));
privateMessageFolder.addElement("folderName").addCDATA(
formatString("" + pmf.getFolderName()));
privateMessageFolder.addElement("userId").addCDATA(
formatString("" + pmf.getUserId()));
}
return document;
}