I need to be able to use something other than a disk-based file as the first parameter in "parser.parse(xxxx,...)" part of the SAXParser.
I have a JDOM tree I'm trying to send to the SAXparser as a stream so the JDOM doesn't first need to be written to the disk as an XML file.
I've tried passing a
String where I took the SAXParser's output and did a ".toString() on it, and I tried a ByteArrayOutputStream, but neither works.
Is it possible to send a stream of some type to the parser command using a JDOM tree as input?
I tried creating an input stream but had problems getting it to work.
Any suggestions would be greatly appreciated!
Thanks.
Mike