This may be simple to you people but as i am new to java, so i want know actually what is going on in the following part?
if (args.length > 0) { file =
That line is checking to see if arguments were actually entered on the command line.
If any are entered, the first one is the name of the file.
If none are entered, test1.xml is the default.
test1.xml