/** */
public void readXML(File file) {
/** Basic XML parser */
Parser xmlParser = new XMLParser();
constants.info("opening: " + file.getName());
LineNumberReader lnreader = null;
FileReader freader = null;
try {
freader = new FileReader(file);
lnreader = new LineNumberReader(freader);
String line = "";
Command command;
long start = System.currentTimeMillis();
while ((line = lnreader.readLine()) != null) {
command = xmlParser.parse(line);
if (command != null) {
if (insert(command))
counter++;
}
}