cancel
Showing results forย 
Search instead forย 
Did you mean:ย 

Validate XML and send mail with file name

Sahil
Contributor

Hi,

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

1 REPLY 1

j_angelevski
Contributor III

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