public void setDefault() {
    fileName = "file";
    extension = "xml";
    stepNrInFilename = false;
    doNotOpenNewFileInit = false;
    dateInFilename = false;
    timeInFilename = false;
    addToResultFilenames = false;
    zipped = false;
    splitEvery = 0;
    encoding = Const.XML_ENCODING;
    nameSpace = "";
    date_time_format = null;
    SpecifyFormat = false;
    omitNullValues = false;
    mainElement = "Rows";
    repeatElement = "Row";

    int nrfields = 0;

    allocate( nrfields );
  }
@Test
  public void testSetDefault() throws Exception {
    XMLOutputMeta xmlOutputMeta = new XMLOutputMeta();
    xmlOutputMeta.setDefault();
    assertEquals( "file", xmlOutputMeta.getFileName() );
    assertEquals( "xml", xmlOutputMeta.getExtension() );
    assertFalse( xmlOutputMeta.isStepNrInFilename() );
    assertFalse( xmlOutputMeta.isDoNotOpenNewFileInit() );
    assertFalse( xmlOutputMeta.isDateInFilename() );
    assertFalse( xmlOutputMeta.isTimeInFilename() );
    assertFalse( xmlOutputMeta.isAddToResultFiles() );
    assertFalse( xmlOutputMeta.isZipped() );
    assertEquals( 0, xmlOutputMeta.getSplitEvery() );
    assertEquals( Const.XML_ENCODING, xmlOutputMeta.getEncoding() );
    assertEquals( "", xmlOutputMeta.getNameSpace() );
    assertNull( xmlOutputMeta.getDateTimeFormat() );
    assertFalse( xmlOutputMeta.isSpecifyFormat() );
    assertFalse( xmlOutputMeta.isOmitNullValues() );
    assertEquals( "Rows", xmlOutputMeta.getMainElement() );
    assertEquals( "Row", xmlOutputMeta.getRepeatElement() );
  }