Code example for TransformerFactory

Methods: newTransformer

0
    } 
     
    public void extract() throws TransformerException { 
        Source xslt = new StreamSource(new File(homedir, "extract.xslt"));
        Transformer transformer;
        transformer = factory.newTransformer(xslt);
        Source text = new StreamSource(
                new File(homedir, "LiquidGame.archimate"));
        transformer.transform(text, new StreamResult(new File(homedir,
                "output.xml")));// FIXME do we need it? 
    } 
}