get the output of the regions to parse correctly to XML.