I am using xpath extractor to retrieve a form attribute value from the response data. However, this response data contains, among other data the String "C&I", and this is causing the following SAXException
jmeter.extractor.XPathExtractor: SAXException while processing
(substring-after(//form[@id='headerForm']/@action,'/dashboard.xhtml?'))The reference to entity "I" must end with the ';' delimiter.
I do not have any control over this data since it is being obtained from the database. I tried checking the "Use Tidy(tolerant parser)" option. That results in the following warning/error
ERROR - jmeter.util.XPathUtil: TidyException: line 35 column 31 - Warning: trimming empty <div>
Line 35 of the response is as follows:
`<div style="clear: both;"></div>`
Extracting that attribute value is essential for further processing for me.