java/sql-dk/src/info/globalcode/sql/dk/formatting/XmlFormatter.java
branchv_0
changeset 163 1df10a9be6f4
parent 155 eb3676c6929b
child 165 871185e406b3
equal deleted inserted replaced
162:7863d8a423d4 163:1df10a9be6f4
   147 		}
   147 		}
   148 
   148 
   149 		if (value == null) {
   149 		if (value == null) {
   150 			if (attributes == null) {
   150 			if (attributes == null) {
   151 				attributes = new LinkedHashMap<>(2);
   151 				attributes = new LinkedHashMap<>(2);
   152 				attributes.put(qname("null"), "true");
       
   153 				printEmptyElement(qname("column"), attributes);
       
   154 			}
   152 			}
       
   153 			attributes.put(qname("null"), "true");
       
   154 			printEmptyElement(qname("column"), attributes);
   155 		} else {
   155 		} else {
   156 			printTextElement(qname("column"), attributes, toString(value));
   156 			printTextElement(qname("column"), attributes, toString(value));
   157 		}
   157 		}
   158 	}
   158 	}
   159 
   159