xml_parser_test.cpp rewrited with gtest

xml_parser_test.cpp rewrited with gtest
many code style fixed under the instruction of code style doc