private void printClosingTag(ORASSNode node, CachedRowSet data, List<String> keyCols, List<String> currKeyVals, int indentation) throws MainException{
		try{
			String tableName = node.getName();
			if(!data.isLast()){
				data.next();
				List<String> nextKeyVals = getSelectedVals(tableName, keyCols, data);
				boolean sameVals = isValsEqual(currKeyVals, nextKeyVals);
				if(!sameVals){
					printTabs(indentation);
					writer.println("</"+tableName+">");
				}
				data.previous();
			} else{
				printTabs(indentation);
				writer.println("</"+tableName+">");
			}

		}catch(SQLException ex){
			throw new MainException(ex.getMessage());
		}
	}