Code example for Templates

Methods: newTransformer

0
	TransformerConfigurationException 
    { 
	_templates = templates;
	_transformer = (TransformerImpl) templates.newTransformer();
        _transformerHandler = new TransformerHandlerImpl(_transformer);
    } 
     
    public Transformer getTransformer() {
        return _transformer;
    } 
 
    private void createParent() throws SAXException { 
	XMLReader parent = null;
        try { 
            SAXParserFactory pfactory = SAXParserFactory.newInstance();
            pfactory.setNamespaceAware(true);
             
            if (_transformer.isSecureProcessing()) {
                try { 
                    pfactory.setFeature(XMLConstants.FEATURE_SECURE_PROCESSING, true);
                }