change default expect_result to 0; add log when split xml by set; update function to remove empty set