Skip to main content

SAX

1 reply [Last post]
imamitjain
Offline
Joined: 2007-06-16
Points: 0

i m using SAX to create an XML.
I set result to "Servlet Output Stream" as shown below :->

SAXTransformerFactory saxTF = SAXTransformerFactory.newInstance();
TransformerHandler th = saxTF.newTransformerHandler();
Transformer t = th.getTransformer();
StreamResult stRes = new StreamResult(res.getOutputStream());
th.setResult(stRes);

th.startDocument();

what i want to wright the same xml result in file at the same time(parallel y).

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
spericas
Offline
Joined: 2003-06-10
Points: 0

imamitjain,

Could you try to elaborate exactly what you're trying to do? Sorry, your question isn't very clear to me. I'm not sure what you mean by "same time or parallel y".