fix xml reader bug
fix compiler error for msvc abort