[jdom-interest] Need to echo print an org.w3c.dom.Document from an Oracle warehouse

David Parker dlparker at facstaff.wisc.edu
Thu Oct 26 09:11:28 PDT 2000

I'm getting an xml doc from and generated from an from Oracle warehouse
It suddenly has begun to throw an exception half through the document.
There is no toString() method to look at it and I'm trying to save it to 
the hard drive.

How do I pass it to the BufferedWriter?
FileInputStream needs to open a connection to an actual file in the file 
I'm in a "Catch 22".

// returns a org.w3c.dom.Document from Oracle warehouse
doc = student.getClassesDOM(conn, "UGRD");

// set up a PrintStream pointing to a file
FileOutputStream fos = new FileOutputStream(davexml.txt);
OutputStreamWriter osw = new OutputStreamWriter(fos, "UTF-8");
BufferedWriter bw = new BufferedWriter(osw);

bw.write( ?? doc ?? );   //needs a string


David Parker

mailto:david.parker at doit.wisc.edu

Library, Instructional & Retrieval Applications,
DoIT - University of Wisconsin-Madison
1210 West Dayton Street, Madison WI  53706
Phone: 608.265.7829     FAX: 608.265-6453
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://jdom.org/pipermail/jdom-interest/attachments/20001026/9c06211a/attachment.htm

More information about the jdom-interest mailing list