public String getXML()
	{
		StringBuffer xml = new StringBuffer();
		xml.append( "<datavalidation" );
		xml.append( " type=\"" + VALUE_TYPE[getValidationType()] + "\"" );
		xml.append( " operator=\"" + CONDITIONS[getTypeOperator()] + "\"" );
		xml.append( " allowBlank=\"" + ((isAllowBlank()) ? "1" : "0") + "\"" );
		xml.append( " showInputMessage=\"" + ((getShowInputMsg()) ? "1" : "0") + "\"" );
		xml.append( " showErrorMessage=\"" + ((isShowErrorMsg()) ? "1" : "0") + "\"" );
		xml.append( " errorTitle=\"" + getErrorBoxTitle() + "\"" );
		xml.append( " error=\"" + getErrorBoxText() + "\"" );
		xml.append( " promptTitle=\"" + getPromptBoxTitle() + "\"" );
		xml.append( " prompt=\"" + getPromptBoxText() + "\"" );
		try
		{
			xml.append( " sqref=\"" + getRange() + "\"" );
		}
		catch( Exception e )
		{
			log.error( "Problem getting range for ValidationHandle.getXML().", e );
		}
		xml.append( ">" );
		if( getFirstCondition() != null )
		{
			xml.append( "<formula1>" );
			xml.append( StringTool.convertXMLChars( getFirstCondition() ) );
			xml.append( "</formula1>" );
		}
		if( getSecondCondition() != null )
		{
			xml.append( "<formula2>" );
			xml.append( StringTool.convertXMLChars( getSecondCondition() ) );
			xml.append( "</formula2>" );
		}
		xml.append( "</datavalidation>" );
		return xml.toString();
	}