Skip to content

Commit 06e1a6a

Browse files
xml exportation updated 1
1 parent 9a6ba33 commit 06e1a6a

File tree

3 files changed

+4
-3
lines changed

3 files changed

+4
-3
lines changed

.idea/misc.xml

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/Main.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ public static void main(String[] args) throws IOException, TableCreationOutOfBou
2323
System.out.println("Some Erro");
2424
}
2525

26-
System.out.println(login_tb.exportToXML(new File("C:/Users/Anikesh/Desktop/data.xml")));
26+
System.out.println(login_tb.exportToXML(new File("C:/Users/Gaurav/Desktop/data.xml")));
2727
}
2828
}

src/anon/database/Table.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -452,13 +452,14 @@ public boolean exportToXML(File xmlFile) throws IOException {
452452
for (int i=1;i<row.size();i++){
453453
writer.append(DOUBLE_TAB+TAG_OPENING+"data"+TAG_CLOSING+row.get(i)+TAG_OPENING_WITH_CLOSE+"data"+TAG_CLOSING+NEW_LINE_SEPARATOR);
454454
}
455+
writer.append(SINGLE_TAB+TAG_OPENING_WITH_CLOSE+"Column"+TAG_CLOSING);
455456
}
456457
if (count != 1){
457458
writer.append(NEW_LINE_SEPARATOR+SINGLE_TAB+TAG_OPENING+"Row key="+row.get(0)+TAG_CLOSING+NEW_LINE_SEPARATOR);
458459
for (int i=1;i<row.size();i++){
459460
writer.append(DOUBLE_TAB+TAG_OPENING+"data"+TAG_CLOSING+row.get(i)+TAG_OPENING_WITH_CLOSE+"data"+TAG_CLOSING+NEW_LINE_SEPARATOR);
460461
}
461-
writer.append(SINGLE_TAB+TAG_OPENING_WITH_CLOSE+"row"+TAG_CLOSING);
462+
writer.append(SINGLE_TAB+TAG_OPENING_WITH_CLOSE+"Row"+TAG_CLOSING);
462463
}
463464
status = true;
464465
}

0 commit comments

Comments
 (0)