title: JMeter - Remove empty elements in SOAP request
body: <p>I am using CSV Data Set Config to fill SOAP/XML variables to request in <code>JMeter</code>. My problem is, when some variables are empty, then i get error on validation caused by this so I need to get rid of those. </p>
  
  <p>There is very similar topic, well described (<a href="https://stackoverflow.com/questions/25041131/jmeter-remove-empty-strings-at-a-soap-xml-reqeust">Jmeter remove empty strings at a SOAP/xml reqeust</a>), unfortunately the solution is not working for me, iam getting:</p>
  
  <blockquote>
    <p>meter.util.BeanShellInterpreter: Error invoking bsh method:
    eval  Sourced file: inline evaluation of: ``String data =
    sampler.getXmlData(); data = data.replaceAll("","");  . . .
    '' : Typed variable declaration : Error in method invocation: Method
    getXmlData() not found in
    class'org.apache.jmeter.protocol.http.sampler.HTTPSamplerProxy'</p>
  </blockquote>