Utility to parse xml, implementing dynamic models feature