Remove invalid segments from XML using Validate Service

Hi,

We are receiving bunch of orders from our internal system. The first thing we do with that Order is to validate the incoming Order XML against a schema. Lets say order XML contains ten orders but the 7’th order is not a valid one so the validation fails. I would like to remove that 7’th one from the XML and pass the order to the target system. We set the Max Errors to -1 so it will provide all the errors and we can remove all the bad orders from the file and pass the rest to the target. Any idea how to do this?.

We use IS 4.6

Thanks,
Muru.

Murugaiyan,

Basically if you find any errors in the one of the orders upon validation then drop that particualr Order from the Orders doclist(index)before sending to the target system.