code: private void paintOriginalXML(final String originalXML, final PrintWriter writer) {
  		// Replace any CDATA Sections embedded in XML
  		String xml = originalXML.replaceAll("<!\\[CDATA\\[", "CDATASTART");
  		xml = xml.replaceAll("\\]\\]>", "CDATAFINISH");
  
  		// Paint Output
  		writer.println("<div>");
  		writer.println("<!-- VALIDATE XML ERROR - START XML -->");
  		writer.println("<![CDATA[");
  		writer.println(xml);
  		writer.println("]]>");
  		writer.println("<!-- VALIDATE XML ERROR - END XML -->");
  		writer.println("</div>");
  	}
docs: Paint the original XML wrapped in a CDATA Section.
  
  @param originalXML the original XML
  @param writer the output writer