<html>
I'm getting an xml doc from and generated from an from Oracle
warehouse<br>
It suddenly has begun to throw an exception half through the
document.<br>
There is no toString() method to look at it and I'm trying to save it to
the hard
drive.<x-tab> </x-tab><br>
<br>
How do I pass it to the BufferedWriter?<br>
<font face="Courier New, Courier">FileInputStream needs to open a
connection to an actual file in the file system.<br>
I'm in a "Catch 22".<br>
</font><x-tab> </x-tab><br>
<br>
// returns a org.w3c.dom.Document from Oracle warehouse<br>
doc = student.getClassesDOM(conn, "UGRD");<br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><br>
// set up a PrintStream pointing to a file<br>
FileOutputStream fos = new FileOutputStream(davexml.txt);<br>
OutputStreamWriter osw = new OutputStreamWriter(fos,
"UTF-8");<br>
BufferedWriter bw = new BufferedWriter(osw);<br>
<br>
bw.write( ?? doc ?? ); //needs a string<br>
<br>
bw.close();<br>
<br>
<x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><x-tab> </x-tab><br>
<x-sigsep><p></x-sigsep>
Sincerely,<br>
David Parker <br>
<br>
<a href="mailto:david.parker@doit.wisc.edu" eudora="autourl">mailto</a>:david.parker@doit.wisc.<a href="mailto:david.parker@doit.wisc.edu" eudora="autourl">edu<br>
</a> <br>
Library, Instructional & Retrieval Applications, <br>
DoIT - University of Wisconsin-Madison<br>
1210 West Dayton Street, Madison WI 53706<br>
Phone: 608.265.7829 <x-tab> </x-tab>FAX:
608.265-6453</html>