Code example for LSSerializer

Methods: write

0
			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)
	{ 
		try 
		{ 
			 
			StringWriter sw = new StringWriter();
			 
			 DocumentBuilderFactory factory 
			   = DocumentBuilderFactory.newInstance();