@Override
	public void insert(String dataBaseName, String tableName,
			ArrayList<Field> entries) {
		// get the array of col from load
		XMLParser obj = new XMLParser();
		 ArrayList<Col>table=obj.load(dataBaseName, tableName);

		//ArrayList<Col> table = intialize();
		if (table == null){
			System.out.println("NULL TABLE");
			return;
		}
		int len = table.get(0).getLen();
		for (int i = 0; i < table.size(); i++) {
			table.get(i).addElemByDefault();
		}
		for (int i = 0; i < entries.size(); i++) {
			// search for the name of the col
			String fieldName = entries.get(i).getName();
			for (int j = 0; j < table.size(); j++) {
				if (fieldName.equals(table.get(j).getFieldName())) {
					table.get(j).setElement(len, entries.get(i).getValue());
				}
			}
		}
		try {
			obj.createTable(dataBaseName, tableName, table);
		} catch (ParserConfigurationException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		} catch (TransformerException e) {
			// TODO Auto-generated catch block
			e.printStackTrace();
		}
		//print(table);
	}