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