private void writeFeedItems(XMLEventWriter eventWriter, RSSFeedMessage message) throws XMLStreamException
	{
		XMLEventFactory eventFactory = XMLEventFactory.newInstance();
		XMLEvent tab = eventFactory.createDTD("\t");
		XMLEvent end = eventFactory.createDTD("\n");
		
		eventWriter.add(tab);
		createNode(eventWriter, TITLE, message.getTitle());
		
		eventWriter.add(tab);
		createNode(eventWriter, LINK, message.getLink());
		
		eventWriter.add(tab);
		createNode(eventWriter, DESCRIPTION, message.getDescription());
		
		if(message.getAuthor() != null && !message.getAuthor().equals(""))
		{
			eventWriter.add(tab);
			createNode(eventWriter, AUTHOR, message.getAuthor());
		}
		
		if(message.getCategory() != null && !message.getCategory().equals(""))
		{
			eventWriter.add(tab);
			createNode(eventWriter, CATEGORY, message.getCategory());
		}
		
		if(message.getComment() != null && !message.getComment().equals(""))
		{
			eventWriter.add(tab);
			createNode(eventWriter, COMMENTS, message.getComment());
		}
		
		if(message.getPublicationDate() != null)
		{
			eventWriter.add(tab);
			createNode(eventWriter, PUB_DATE, dateFormat.format(message.getPublicationDate()));
		}
		
		if(message.getEnclosure() != null)
		{
			eventWriter.add(tab);
			eventWriter.add(tab);
			Enclosure enclosure = message.getEnclosure();
			File file = new File(enclosure.getFilePath());
			
			StartElement startElement = eventFactory.createStartElement("", "", ENCLOSURE);
			eventWriter.add(startElement);
			
			Attribute url = eventFactory.createAttribute(URL, enclosure.getUrl());
			eventWriter.add(url);
			
			Attribute type = eventFactory.createAttribute(TYPE, enclosure.getMineType());
			eventWriter.add(type);
			
			Attribute length = eventFactory.createAttribute(LENGTH, file.length()+"");
			eventWriter.add(length);
			
			EndElement endElement = eventFactory.createEndElement("", "", ENCLOSURE);
			eventWriter.add(endElement);
			eventWriter.add(end);
		}
	}