posted 19 years ago
Hello!
This post probably looks like it belongs in the XML category group, but it really has more to do with converting an
OutputStream to an InputStream.
I'm trying to intercept an output file "out.xml" and re-route it into another function, instead of writing it out to an
EXTERNAL file!
The reason i'm trying to do this is that the generated XML file is very large, 2 billion recs, and i only need to run the XML
file thru a SAX.parse() - validation routine and create a report showing which records have invalid data, and would like to
avoid creating a huge XML file when it's really not needed!
So basically, i'm trying to convert and OutPutStream back into an InputStream and i've been trying the PipeOutputStream
approach, but am not making very good progress!
Thanks very much for any ideas!
bc
Here is what Oracle is saying to use for LARGE XML SAX processing and my Pipe.... code follows this example:
Here are my attempts to intercept that "out.xml" file and re-route it to the "sp.parse()" function!