mcbootus
15 years agoContributor
[Res] Problem with space as the last character in an XPATH
Dear support,
I have a problem which is causing an assertion to fail because the XPATH command is not including the space, which is the last character in the result - here is the data from the XML:
<ns4:firstName>Christian SIMON </ns4:firstName>
There is a space as a last character and this is discarded in the XPATH - is there a way to keep the space?
Here is the end of the XPATH used:
I tried adding /text() or /string() to the end of the XPATH but that did not help.
Thank you in advance,
Armen
I have a problem which is causing an assertion to fail because the XPATH command is not including the space, which is the last character in the result - here is the data from the XML:
<ns4:firstName>Christian SIMON </ns4:firstName>
There is a space as a last character and this is discarded in the XPATH - is there a way to keep the space?
Here is the end of the XPATH used:
........./ns4:dgConsultationInfo[1]/ns4:response[1]/ns4:contact[1]/ns4:firstName[1]
I tried adding /text() or /string() to the end of the XPATH but that did not help.
Thank you in advance,
Armen