If the file is less than 5 megs ... I'd recommend building
the xml file as a jdom element. That gives you the advantage
of being able to pretty print the xml output, serialize the
jdom element into a java input stream, and to read the input
stream. Also, if each object has a "Element toElement()" and
an "Object(Element elm)" constructor you can create objects
from the xml that you read via jdom. In other words, jdom
was created to do what you're trying to do.
If the files is larger than 5 megs jdom is still the right
tool, but you have to think about how you do things (incrementally)
so you don't hog up a lot of memory.
de*******@yahoo.com (Manoj Nair) wrote in message news:<92**************************@posting.google. com>...
I am using Weblogic XMLOutoutStream to create a XML file on the fly.
But instead of using flush() method and writing a physical file onto
the disk I want to convert this outputstream to a java InputStream
which can then be passed to the FOP XSLT transformer. any ideas?