.. yes, this works like magic - for now I use a StringWriter for buffering ... thanks a lot!


StringWriter sw = new StringWriter();
Mapping mapping = new Mapping();
mapping.loadMapping("castor-xml-mapping.xml");
Marshaller marshaller = new Marshaller(sw);
marshaller.setMapping(mapping);
marshaller.setRootElement("root");
marshaller.marshal(al);
..
TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource("transform.xsl"));
transformer.transform(new StreamSource(new StringBufferInputStream(sw.toString())), new StreamResult(new OutputStreamWriter(System.out)));




----------------------------------------------------------- If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-user

Reply via email to