Forum Discussion
SmartBear_Suppo
Alumni
15 years agoHi,
try using the "normalize-space" function in your xpath-expressions to get the same whitespaces in both texts;
xpath Expression (output of jdbc response)
normalize-space(//Results[1]/ResultSet[1]/Row[1]/PERFORMANCEREVIEW[1]/text())
expected result (output of rest response)
${Review#ResponseAsXml#declare namespace ns1='com.rovicorp.metadataservice'; normalize-space(//ns1:PerformanceReview[1]/ns1:Data[1]/ns1:text[1])}
Does that help?
regards!
/Ole
eviware.com
try using the "normalize-space" function in your xpath-expressions to get the same whitespaces in both texts;
xpath Expression (output of jdbc response)
normalize-space(//Results[1]/ResultSet[1]/Row[1]/PERFORMANCEREVIEW[1]/text())
expected result (output of rest response)
${Review#ResponseAsXml#declare namespace ns1='com.rovicorp.metadataservice'; normalize-space(//ns1:PerformanceReview[1]/ns1:Data[1]/ns1:text[1])}
Does that help?
regards!
/Ole
eviware.com