Fix the issue that different result might be given for same xml with different tag order