[jdom-interest] ResultSetBuilder bug?

Christopher Pereda cpereda at telocity.com
Mon Sep 30 17:11:24 PDT 2002

Hi, I wanted to set a column in a ResultSet as a attribute but whenever I
specified a new name for the attribute it made the column a element and not a
attribute. This happens in both setAsAttribute(int, String) and
setAsAttribute(String, String).

I think the problem is in the build() function line #216
if (!attribs.isEmpty() && isAttribute(name)) {

change to 
if (!attribs.isEmpty() && isAttribute(columnName[col-1])) {

and it works for me. BTW, anybody know when ResultSetBuilder is going to be in
the main distro?


More information about the jdom-interest mailing list