ParsedFaq faq = parse(dir, "faq.html", "faq", lastupdate, ParsedFaq.class);
factbook.getFaqCategory().addAll(faq.getFaqCategory());
ParsedDefinitions defs = parse(dir, "definitions.html", "defs", lastupdate, ParsedDefinitions.class);
factbook.getDefinition().addAll(defs.getDefinition());
for (char ltr = 'a'; ltr <= 'g'; ltr++) {
ParsedAppendix appendix = parse(dir, "appendix-" + ltr + ".html", "appendix", lastupdate, ParsedAppendix.class);
Factbook.Appendix a = obf.createFactbookAppendix();
a.setLetter("" + ltr);
a.setName(appendix.getName());
a.setList(appendix.getList());
a.getTable().addAll(appendix.getTable());
factbook.getAppendix().add(a);
}
;
System.out.println("Writing out...");
FileOutputStream fos = new FileOutputStream(new File(dir, "../factbook2.xml"));