Code example for DocumentBuilder

Methods: getDOMImplementation

0
			output.setEncoding("UTF-8");
			serializer.write(doc, output);
			 
			out.close();
		} 
		catch (Exception any)
		{ 
			M_log.warn("writeDocument: " + any.toString());
		} 
	} 
 
	/** 
	 * Write a DOM Document to an output stream. 
	 *  
	 * @param doc 
	 *        The DOM Document to write. 
	 * @param out 
	 *        The output stream. 
	 */ 
	public static String writeDocumentToString(Document doc)
	{