Java XML Transform getXmlSecureTransform()

Here you can find the source of getXmlSecureTransform()

Description

get Xml Secure Transform

License

Open Source License

Declaration

public static Transformer getXmlSecureTransform() throws TransformerConfigurationException 

Method Source Code

//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;
    }
}

Related

  1. getTransformerFactory()
  2. getTransformerFactory()
  3. getTransformerTemplate(javax.xml.transform.Source xsltSource)
  4. getTransformParameterSpec(final Node transformNode, final String namespacePrefix)
  5. getTransforms(List list)
  6. getXmlSecureTransformerFactory()
  7. getXmlTransformer()
  8. getXMLTransformer()
  9. getXsltTransformer(File xsltFile)