public class Fanyi {
public static void main(String[] args) throws IOException {
File oldFile = new File("F:\\old.txt");
File newFile = new File("F:\\new.txt");
while (null != oldLine && null != newLine) {
//词条节点为BDDOT
Element bddot = fanyi.addElement("BDD");
//原文节点ORIGINAL
Element original = bddot.addElement("ORIGINAL");
//译文节点TRADUIT
Element traduit = bddot.addElement("TRADUIT");