aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_xpath_pred.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2010-12-07 23:31:34 +0100
committerLars Thorsen <[email protected]>2011-11-11 11:58:43 +0100
commit6d841684ff63ff8cc6295ea4c4461385ab594136 (patch)
treec53c7bd780ff6208a13d4868d78a6f270536849d /lib/xmerl/src/xmerl_xpath_pred.erl
parentfcf6b58a1f7a2eafa0db79f1715db1c193c3f346 (diff)
downloadotp-6d841684ff63ff8cc6295ea4c4461385ab594136.tar.gz
otp-6d841684ff63ff8cc6295ea4c4461385ab594136.tar.bz2
otp-6d841684ff63ff8cc6295ea4c4461385ab594136.zip
Accumulate comments in element nodes
Diffstat (limited to 'lib/xmerl/src/xmerl_xpath_pred.erl')
-rw-r--r--lib/xmerl/src/xmerl_xpath_pred.erl3
1 files changed, 3 insertions, 0 deletions
diff --git a/lib/xmerl/src/xmerl_xpath_pred.erl b/lib/xmerl/src/xmerl_xpath_pred.erl
index 451a09bee3..9ad7925111 100644
--- a/lib/xmerl/src/xmerl_xpath_pred.erl
+++ b/lib/xmerl/src/xmerl_xpath_pred.erl
@@ -442,6 +442,9 @@ string_value(El=#xmlNode{type=element}) ->
string_value(T=#xmlNode{type=text}) ->
#xmlText{value=Txt} = T#xmlNode.node,
?string(Txt);
+string_value(T=#xmlNode{type=comment}) ->
+ #xmlComment{value=Txt} = T#xmlNode.node,
+ ?string(Txt);
string_value(infinity) -> ?string("Infinity");
string_value(neg_infinity) -> ?string("-Infinity");
string_value(A) when is_atom(A) ->