Skip to content

Commit 7ca59f5

Browse files
author
livecodesam
authored
[[ Bug 23160 ]] Correct code example in revXMLEvaluateXPath (livecode#7549)
Changed the expression used in the code example so that it will give the correct result instead of a crash.
1 parent 89ae22b commit 7ca59f5

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

docs/dictionary/function/revXMLEvaluateXPath.lcdoc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ OS: mac, windows, linux, ios, android
2020
Platforms: desktop, server, mobile
2121

2222
Example:
23-
put "/bookstore/book/[price<40]/" into pXPathExpression
23+
put "/bookstore/book[price<40]/" into pXPathExpression
2424
put revXMLEvaluateXPath(pDocID, pXPathExpression)
2525

2626
Description:
@@ -63,7 +63,7 @@ instance, given xml data of
6363

6464
then
6565

66-
put "/bookstore/book/[price<40]/" into pXPathExpression
66+
put "/bookstore/book[price<40]/" into pXPathExpression
6767
put revXMLEvaluateXPath(pDocID, pXPathExpression)
6868

6969
gives you

docs/notes/bugfix-23160.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
# Corrected code example in the revXMLEvaluateXPath entry

0 commit comments

Comments
 (0)