add xml file parse junit test case, and fix some mistake