public void writeBadDB(String file) {
        
        if (file == null) {
            return ;
        }
        File outfile = new File(file);
        
        
        
        try {
            if (! outfile.exists()) {
                outfile.createNewFile();
            }
            
            FileWriter fwt = new FileWriter(outfile.getAbsoluteFile());
            BufferedWriter bwt = new BufferedWriter(fwt);
            
            //write contents of dataCOntainer out to the XML file
            bwt.write("<?xml version=\"1.0\"?>");
            bwt.newLine();
            
            bwt.write("<portfolio>");
            bwt.newLine();
            
            
                bwt.write("\t\t<stock id=\"yuck\" />");
                bwt.newLine();
              
                //bwt.write("\t\t</badnodename>");
                //Pbwt.newLine();
            
            
            bwt.write("</portfolio>");
            bwt.newLine();
            bwt.close();
            
        }
        catch(Exception doh) {
            System.out.println(doh.getMessage());
        }
        
    }