Hi, I have some xml files which I need to transform to html with xslt. I have code that looks like the following: javax.xml.transform.TransformerFactory tFactory = TransformerFactory.newInstance(); javax.xml.transform.Transformer transformer = tFactory.newTransformer(new StreamSource(xslFilename)); java.io.ByteArrayOutputStream baos = new ByteArrayOutputStream(); transformer.transform(new StreamSource(xmlFilepath, new StreamResult(baos)); String s = baos.toString("UTF-8"); I get an exception with some xml files, I'm not sure why, but I think it's ...