for (Map.Entry<String, List<String>> entry : result.entrySet()) {
List<String> values = new ArrayList<String>(entry.getValue());
String columns = values.remove(0);
for (String line : values) {
System.out.print("<" + entry.getKey() + " ");
CSVReader columnNames = new CSVReader(new StringReader(columns));
CSVReader columnValues = new CSVReader(new StringReader(line));
String[] columnValueItems = columnValues.readNext();
String[] columnNameItems = columnNames.readNext();
for (int i = 0; i < columnNameItems.length; i++) {
if (!columnValueItems[i].equals("NULL")) {
System.out.print(columnNameItems[i] + "=\"" + columnValueItems[i].replaceAll("&", "&") + "\" ");