public void writeSingleLineDateElement(String elementName, Date value) throws IOException {
		if (elementName == null || elementName.length() == 0) {
			return;
		}
		if (value == null) {
			return;
		}
		addElementName(elementName);		
		indent();		
		writer.write("<");
		writer.write(elementName);
		writer.write(">");
		writer.write(DATE_FORMAT.format(value));
		writer.write("</");
		writer.write(elementName);
		writer.write(">\n");						
		removeElementName(elementName);
	}
public void writeSingleLineDateElement ( String elementName , Date value ) throws IOException { if ( elementName == null || elementName . length ( ) == 0 ) { return ; } if ( value == null ) { return ; } addElementName ( elementName ) ; indent ( ) ; writer . write ( "<" ) ; writer . write ( elementName ) ; writer . write ( ">" ) ; writer . write ( DATE_FORMAT . format ( value ) ) ; writer . write ( "</" ) ; writer . write ( elementName ) ; writer . write ( ">\n" ) ; removeElementName ( elementName ) ; }
Writes '<elementName><text></elementName>\n'.