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