[jdom-interest] ResultSetBuilder issue

WD webdevil2003 at excite.com
Wed Nov 9 07:21:04 PST 2005


When I use XMLOutputter, the outpout is as follows

<?xml version="1.0" encoding="UTF-8"?>
<result />

The problme is that it does not contain the data from ResultSet. I have verified that the ResultSet is populated with the data.




 --- On Tue 11/08, Anderson, Paul D < paul.d.anderson at boeing.com > wrote:
From: Anderson, Paul D [mailto: paul.d.anderson at boeing.com]
To: jdom-interest at jdom.org
Date: Tue, 8 Nov 2005 14:53:46 -0800
Subject: RE: [jdom-interest] ResultSetBuilder issue

<br>You are outputting the document directly and you need to use an<br>outputter. See org.jdom.output.<br>Your output is the correct output of the Document.toString() method.<br><br>-----Original Message-----<br>From: WD [mailto:webdevil2003 at excite.com] <br>Sent: Tuesday, November 08, 2005 2:38 PM<br>To: jdom-interest at jdom.org<br>Subject: [jdom-interest] ResultSetBuilder issue<br><br><br>Hi All,<br>I have created a utility class that provides a method to get the<br>Document out of ResultSet object and then I created a JUnit test case to<br>test this utility class. I execute JDBC statement and get the ResultSet,<br>but when I try to get the Document out of this ResultSet, it is not<br>working. I am getting the following as an out put<br><br>[Document:  No DOCTYPE declaration, Root is [Element: <result/>]]<br><br>I am using mysql. I have verified that the ResultSet is populated with<br>the data. What could be the 
reason?<br><br>Thanks<br>WD<br><br><br><br><br>_______________________________________________<br>Join Excite! - http://www.excite.com<br>The most personalized portal on the Web!<br><br><br>_______________________________________________<br>To control your jdom-interest membership:<br>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com<br><br>_______________________________________________<br>To control your jdom-interest membership:<br>http://www.jdom.org/mailman/options/jdom-interest/youraddr@yourhost.com<br>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!




More information about the jdom-interest mailing list