Element root = document.addElement("root");
Element fileExplorerItemsElement = root.addElement("fileExplorerItems");
for (Iterator<FileExplorerItem> it = fileExplorerItems.iterator();it.hasNext();) {
FileExplorerItem fileExplorerItem = it.next();
Element fileExplorerItemElement = fileExplorerItemsElement.addElement("fileExplorerItem");
fileExplorerItemElement.addElement("fileExplorerItemId").addCDATA(formatString(""+fileExplorerItem.getFileExplorerItemId()));
fileExplorerItemElement.addElement("fileName").addCDATA(formatString(""+fileExplorerItem.getFileName()));
fileExplorerItemElement.addElement("fileHash").addCDATA(formatString(""+fileExplorerItem.getFileHash()));
fileExplorerItemElement.addElement("parentFileExplorerItemId").addCDATA(formatString(""+fileExplorerItem.getParentFileExplorerItemId()));
fileExplorerItemElement.addElement("room_id").addCDATA(formatString(""+fileExplorerItem.getRoom_id()));
fileExplorerItemElement.addElement("ownerId").addCDATA(formatString(""+fileExplorerItem.getOwnerId()));
fileExplorerItemElement.addElement("isFolder").addCDATA(formatString(""+fileExplorerItem.getIsFolder()));
fileExplorerItemElement.addElement("isImage").addCDATA(formatString(""+fileExplorerItem.getIsImage()));
fileExplorerItemElement.addElement("isPresentation").addCDATA(formatString(""+fileExplorerItem.getIsPresentation()));
fileExplorerItemElement.addElement("isVideo").addCDATA(formatString(""+fileExplorerItem.getIsVideo()));
fileExplorerItemElement.addElement("insertedBy").addCDATA(formatString(""+fileExplorerItem.getInsertedBy()));
fileExplorerItemElement.addElement("inserted").addCDATA(formatString(""+CalendarPatterns.getDateWithTimeByMiliSeconds(fileExplorerItem.getInserted())));
fileExplorerItemElement.addElement("updated").addCDATA(formatString(""+CalendarPatterns.getDateWithTimeByMiliSeconds(fileExplorerItem.getUpdated())));
fileExplorerItemElement.addElement("deleted").addCDATA(formatString(""+fileExplorerItem.getDeleted()));
fileExplorerItemElement.addElement("fileSize").addCDATA(formatString(""+fileExplorerItem.getFileSize()));
fileExplorerItemElement.addElement("flvWidth").addCDATA(formatString(""+fileExplorerItem.getFlvWidth()));
fileExplorerItemElement.addElement("flvHeight").addCDATA(formatString(""+fileExplorerItem.getFlvHeight()));
fileExplorerItemElement.addElement("previewImage").addCDATA(formatString(""+fileExplorerItem.getPreviewImage()));
fileExplorerItemElement.addElement("wmlFilePath").addCDATA(formatString(""+fileExplorerItem.getWmlFilePath()));
fileExplorerItemElement.addElement("isStoredWmlFile").addCDATA(formatString(""+fileExplorerItem.getIsStoredWmlFile()));
fileExplorerItemElement.addElement("isChart").addCDATA(formatString(""+fileExplorerItem.getIsChart()));
}
return document;