|xpath xxpression special characters [message #1799485]
||Fri, 07 December 2018 15:34
| Christina Lichtner
Registered: December 2018
Maybe someone can help me with the following Problem?
I have a XML like this:
<Additional key="Test temperature [°C]" value="23" dataType="STRING" path="Additional<Test temperature [°C]>#23"/>
<Additional key="Upper limit of tolerance (Test temperature) [°C]" value="+0" dataType="STRING" path="Additional<Upper limit of tolerance (Test temperature) [°C]>#+0"/>
For selecting the value of the "Test temperature [°C]" my xpath Expression is as follows:
//Additional[@key='Test temperature [°C]']/@value
But after that I have an error "The filter definition is invalid." I know that the error is due to the square brackets inside the string. So how can I escape the brackets or solve this problem in another way?
Powered by FUDForum
. Page generated in 0.01455 seconds