Hi,

I'm trying to do some basic transforms using xerces / xalan using code like below. The problem is that whatever transform I do, I always get:

<?xml version="1.0" encoding="UTF-8"?>

at the start of the output. The output isn't xml so I don't want this produced. Any ideas how to prevent the <?xml.... from being generated?

Thanks
Nathan


code:

Document doc= new DocumentImpl();
Element root = doc.createElement("myDocument");     // Create Root Element
root.setAttribute(.....
root.setAttribute(.....

TransformerFactory tFactory = TransformerFactory.newInstance();
Transformer transformer = tFactory.newTransformer(new StreamSource(myXSLFile));
transformer.transform(new DOMSource(root), StreamResult(System.out));


--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to