Hi, Thanks a lot for solution.
It works for me. Thanks Ajay --- On Thu, 11/6/08, Dave Brosius <[EMAIL PROTECTED]> wrote: > From: Dave Brosius <[EMAIL PROTECTED]> > Subject: RE: Java Serialization issue > To: "ajay bhadauria" <[EMAIL PROTECTED]> > Cc: xalan-j-users@xml.apache.org > Date: Thursday, November 6, 2008, 3:46 AM > I would be highly suspect of the PipedInput/OutputStreams in > use. I'd assume that they have limited buffering, and > i'm guessing that they just hang up waiting for the > other end to read out of the pipe before proceeding. In your > case you wait till the end to start consuming the output. > > Try writing to to a ByteArrayInput/OutputStreams instead > > -----Original Message----- > From: "ajay bhadauria" > <[EMAIL PROTECTED]> > Sent: Wednesday, November 5, 2008 5:11pm > To: xalan-j-users@xml.apache.org > Subject: Java Serialization issue > > Hi, > > I am trying to serialize from DOM to SAX using > XMLSerializer. It hangs. However,if I serialize and direct > to standard out, it works. I do not know what is wrong with > it ? OR is there any way we can convert from DOM to SAX > source. > > Please find the attached java and xml files. > > > Thanks > Ajay