public void makeFile(PrintWriter out)
  {
    VgerBibDataGenerator generator;
    VgerBibData bibData;
    Document output;
    Element root;
    Element element;
    Transformer identity;
    Result result;

    generator = new VgerBibDataGenerator();
    generator.setDbName( getDbName() );
    generator.setBibID( getBibID() );
    generator.setItemIDs( getItemIDs() );

    bibData = generator.getXmlBibData();

    try
    {
      output =
          DocumentBuilderFactory.newInstance().newDocumentBuilder().newDocument();

      root = output.createElement( "request" );
      output.appendChild( root );

      element = buildBibData( bibData, output );
      root.appendChild( element );

      element = output.createElement( "RequestedItems" );
      for ( VgerItemData theItem: bibData.getSrlfItems() )
        buildItemData( theItem, output, element );
      root.appendChild( element );

      identity = TransformerFactory.newInstance().newTransformer();
      result =
          new StreamResult( out ); // new File( "C:\\Temp\\aeon\\" + getBibID() + ".xml" ) );
      identity.transform( new DOMSource( output ), result );
    }
    catch ( ParserConfigurationException pce )
    {
      pce.printStackTrace();
    }
    catch ( TransformerConfigurationException tce )
    {
      tce.printStackTrace();
    }
    catch ( TransformerException te )
    {
      te.printStackTrace();
    }
  }