Code example for TransformerConfigurationException

Methods: printStackTrace

0
			transformer.setOutputProperty(OutputKeys.OMIT_XML_DECLARATION, "yes");
			transformer.setOutputProperty(OutputKeys.INDENT, "yes");
			transformer.transform(source, result);
 
		} catch (TransformerConfigurationException e) {
			e.printStackTrace();
		} catch (TransformerException e) {
			e.printStackTrace();
		} 
 
		// Create string from XML DOM 
 
		return sw.toString();
	} 
 
	/** 
	 * Writes the XML provided to the file location specified. 
	 *  
	 * @param currDocument 
	 * the XML to be written 
	 * @param currFile