fix Xml2DCaseTree bugs