new version to produce a single xml
 fixing flawed input data