parse key sections in xml