I am getting XML response and want to validate certain fields and that fields should not be blank

I am getting XML response and want to validate certain fields and that fields should not be blank.

This can be done by converting the XML response to JSON and checking it’s individual fields, like so:

var json = xml2Json(pm.response.text());
// json is an object that contains fields which can be tested for validity.
1 Like

thanks alot for the help