I need to preprocess a SOAP request (using HTTP request) populated using a CSV dataset in jMeter. Some of the binded variables are null which is expected, but the service I am testing performs validation on these elements as well.
There was a similar question in the past (JMeter - Remove empty elements in SOAP request), but in my case I am not looking to only clear the blank element I want to clear the whole block.
Example: I want this
<table>
<name>businessLicenceGroup</name>
<tableRow>
<sequence>1</sequence>
<field>
<sequence>0</sequence>
<name>authority</name>
<value>AD01</value>
</field>
<field>
<sequence>1</sequence>
<name>licenceNumber</name>
<value></value>
</field>
</tableRow>
</table>
to be
<table>
<name>businessLicenceGroup</name>
<tableRow>
<sequence>1</sequence>
<field>
<sequence>0</sequence>
<name>authority</name>
<value>AD01</value>
</field>
</tableRow>
</table>