!!link!! Download: Rs2xml Jar--------
: It converts a SQL ResultSet directly into a TableModel , which can then be set as the model for a JTable .
// Convert to XML String xmlOutput = DbUtils.resultSetToXml(rs, true); // 'true' for formatted System.out.println(xmlOutput); Download Rs2xml Jar--------
You can also download the Rs2xml Jar file from GitHub. Here are the steps: : It converts a SQL ResultSet directly into
Once the library is imported, you can use the DbUtils class to populate your table. import net.proteanit.sql.DbUtils; Use code with caution. Copied to clipboard // 'true' for formatted System.out.println(xmlOutput)