Here you can find the source of getXmlSecureTransformerFactory()
public static TransformerFactory getXmlSecureTransformerFactory() throws TransformerConfigurationException
//package com.java2s; // %InstallDIR%\features\org.talend.rcp.branding.%PRODUCTNAME%\%PRODUCTNAME%license.txt import javax.xml.transform.TransformerConfigurationException; import javax.xml.transform.TransformerFactory; public class Main { public static TransformerFactory getXmlSecureTransformerFactory() throws TransformerConfigurationException { TransformerFactory transFactory = TransformerFactory.newInstance(); transFactory.setFeature(javax.xml.XMLConstants.FEATURE_SECURE_PROCESSING, Boolean.TRUE); return transFactory; }// ww w .j a v a 2s . c o m }