Forum Discussion
- SmartBear_SuppoSmartBear Alumni (Retired)Hi,
I'm not entirely sure what you mean (sorry!), can you show a screenshot or something so I get this "in context"?
regards!
/Ole
eviware.com - M_McDonaldSuper ContributorOK, see attached.
As you can see in the background, theelement is empty. The actual result of the xpath is "null" but the expected result is empty (normally I would have some property that resolves to an empty string in the Expected Result field.)
I get around this possibility by using if/then/else
[tt:1rrfulbt]if(//Results[1]/ResultSet[1]/Row[1]/AGE[1]/text())
then //Results[1]/ResultSet[1]/Row[1]/AGE[1]/text()
else ""[/tt:1rrfulbt]
but I wondered if there was a simpler way to handle this (like a ternary expression) or if an "ifnull" option could be added to cover these situations. - SmartBear_SuppoSmartBear Alumni (Retired)Hi!
ok.. hmm.. the functions supported are listed at
http://www.saxonica.com/documentation/f ... intro.html
but I couldn't directly see something you could use though..
regards!
/Ole
eviware.com - M_McDonaldSuper ContributorOK, for strings at least I found something that seems to work:
concat(//Results[1]/ResultSet[1]/Row[1]/AGE[1]/text(),"")
Related Content
- 6 years ago
Recent Discussions
- 22 days ago