some more changes related to the use of stax parser; add unit tests for parsing job.xml and batch.xml.