0 LIKES LikeUnLike
Tags:
Have u tried something like: For row major xml document: String xml = ""; for(int i = 0; i < jt.getRowCount(); i++) { xml+= "<row number = '" + i + "'>\n"; for(int j = 0; j < jt.getColCount(); j++) { xml+= "<col number = '" + j + "'>" + jt.getValueAt(i,j) + "</col>"; } xml += "</row> } //Then save xml to file. For column major XML document just swap the two loops round. Hope this helps
Report (0) (0) | earlier
Latest activity: earlier. This question has 1 answers.