contour division, multiple regions, XML input