Code example for TransformerConfigurationException

Methods: getMessage

                return null; 
            transformer = transformerFactory.newTransformer(associatedStylesheet);
        } catch (TransformerConfigurationException e) {
  "Can't create transformer: " + e.getMessage()); //ignored
        return transformer;
    private XMLReader createReader() throws ParserConfigurationException, SAXException {
        final SAXParserFactory parserFactory = SAXParserFactory.newInstance();
        final SAXParser saxParser = parserFactory.newSAXParser();
        final XMLReader xmlReader = saxParser.getXMLReader();
        xmlReader.setFeature("", true);
        return xmlReader;
    private static class MyXMLSerializer extends XMLSerializer { 
Connect your IDE to all the code out there  Get Codota for Java