Validate XML and send mail with file name

Hi,

I need to validate incoming xml and send the mail stating file name in case of invalid xml.
How do I do it?

Hi @Sahil ,

Do you need to validate against XSD schema ? If so, use XML Formatter with XSD schema selected and click on “Validate output”.

image

Now for sending the invalid xml filename to email, do you want to send the filename from the input file ? If so, you can use an error view on the XML Formatter snap and use Email sender snap to send the report to any email you want. You can use pipeline parameter for the input filename and like this you’ll always have the filename of the input file, then you can use it in the Email sender.

image
image

1 Like