Forum Discussion
anand1
12 years agoContributor
Mr. Rao,
It was my bad as I said that it worked, actually the string //*:data/text() only works when I am selecting the Allow Wildcards Option, else it is getting failed.
In my scenario I feel that allowing wildcard is a bit riskier for me, & I would like to avoid it.
My original output is
<data contentType="text/plain; charset=utf-8" contentLength="149"><![CDATA[The length of the value must fall within the range "0" (Ignore) - "64" (Inclusive).
]]></data>
At the end of this String there is a new line character due to which XPATH is not matching.
So how should I go about the same in case i would like to use XPATH only.
Thanks,
Anand
It was my bad as I said that it worked, actually the string //*:data/text() only works when I am selecting the Allow Wildcards Option, else it is getting failed.
In my scenario I feel that allowing wildcard is a bit riskier for me, & I would like to avoid it.
My original output is
<data contentType="text/plain; charset=utf-8" contentLength="149"><![CDATA[The length of the value must fall within the range "0" (Ignore) - "64" (Inclusive).
]]></data>
At the end of this String there is a new line character due to which XPATH is not matching.
So how should I go about the same in case i would like to use XPATH only.
Thanks,
Anand