fixed many bugs about log xml reading