new xmlgen  for metedata
in progress