projects
/
SXSI
/
xpathcomp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f13e136
)
Fix the xpath script to enclose results in an <xml_result></xml_result> element
author
Kim Nguyễn
<kn@lri.fr>
Fri, 19 Oct 2012 12:44:27 +0000
(14:44 +0200)
committer
Kim Nguyễn
<kn@lri.fr>
Fri, 19 Oct 2012 12:44:27 +0000
(14:44 +0200)
tests/scripts/xpath.sh
patch
|
blob
|
history
diff --git
a/tests/scripts/xpath.sh
b/tests/scripts/xpath.sh
index
abb32b4
..
dec8476
100755
(executable)
--- a/
tests/scripts/xpath.sh
+++ b/
tests/scripts/xpath.sh
@@
-37,10
+37,11
@@
then
exit 1
fi
-
+echo "<xml_result>"
if [ "$COUNT" == "0" ]
then
xmlstarlet sel -t -m "$QUERY" -c . -n "$FILE"
else
xmlstarlet sel -t -v "count($QUERY)" "$FILE"
fi
+echo "</xml_result>"