469,307 Members | 2,075 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 469,307 developers. It's quick & easy.

writing xml using xml

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).
Jun 18 '07 #1
1 1154
Dököll
2,364 Expert 2GB
i m using SAX to create an XML.
I set result to "Servlet Output Stream" as shown below :->
Expand|Select|Wrap|Line Numbers
  1. SAXTransformerFactory saxTF = SAXTransformerFactory.newInstance();
  2. TransformerHandler th = saxTF.newTransformerHandler();
  3. Transformer t = th.getTransformer();
  4. StreamResult stRes = new StreamResult(res.getOutputStream());
  5. th.setResult(stRes);
  6. th.startDocument();
  7.  
what i want to wright the same xml result in file at the same time(parallel y).
Hello, imamitjain!

Can you tell us a little more? I did not quite get what you're trying to do.

Thanks for posting, and welcome!
Jun 28 '07 #2

Post your reply

Sign in to post your reply or Sign up for a free account.

Similar topics

48 posts views Thread by Joseph | last post: by
5 posts views Thread by Jeong-Gun Lee | last post: by
6 posts views Thread by guy | last post: by
reply views Thread by Gazelle | last post: by
6 posts views Thread by arne.muller | last post: by
9 posts views Thread by jerry.upstatenyguy | last post: by
1 post views Thread by CARIGAR | last post: by
reply views Thread by zhoujie | last post: by
reply views Thread by harlem98 | last post: by
reply views Thread by harlem98 | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.