@Override
	public boolean updateCustomer(Customer customer) {
		if (doc == null)
			return false;

		Element currRoot = doc.getRootElement();
		Element parrentCusto = currRoot.getChild("customers");
		List<Element> listCusto = parrentCusto.getChildren();

		for (Element currCusto : listCusto) {
			int custoID = Integer.parseInt(currCusto.getChild("customerID")
					.getText());
			if (customer.getCustomerID() == custoID) {
				currCusto.getChild("name").setText(customer.getName());
				currCusto.getChild("surename").setText(customer.getSurname());
				currCusto.getChild("address").setText(customer.getAddress());
				return true;
			}
		}
		return false;
	}