hi all!

As recommended I got the SAXTransformerFactory instance (and the
TransformerHandler from there).
I wanted to convert a non-xml document to Xml and hence wanted to use this
to feed SAX events to the transformer. I have my implementaion of the
XMLReader interface . The problem is that i want to serialize the resulting
XML doc to a file.
when i do

XMLReaderImpl.parse("non-xml-format-file");
the result is redirected to the console.

How do i specify the javax.xml.transform.Result class for outputting the
resulting XML document using JAXP1.1?
I understand when used in a normal fashion we do

transformer.transform("xml file",new
javax.xml.transform.stream.StreamResult(new File("test.xml"));

But how to do that in my case?

I don't want to create a DOM out of my non-xml document.

thanks,
karthik.


Reply via email to