aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src/xmerl_lib.erl
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2010-12-07 14:23:01 +0100
committerLars Thorsen <[email protected]>2011-11-11 11:58:42 +0100
commit2b11547e61112b102a02de6b30c11c37e34ca21b (patch)
tree432d9e526518d3ca1a6e99dbe373b27090e22519 /lib/xmerl/src/xmerl_lib.erl
parent5d3feb918409696bf375ccf1ab6e67f027e3aa6e (diff)
downloadotp-2b11547e61112b102a02de6b30c11c37e34ca21b.tar.gz
otp-2b11547e61112b102a02de6b30c11c37e34ca21b.tar.bz2
otp-2b11547e61112b102a02de6b30c11c37e34ca21b.zip
Track parents in `#xmlPI` nodes
Diffstat (limited to 'lib/xmerl/src/xmerl_lib.erl')
-rw-r--r--lib/xmerl/src/xmerl_lib.erl3
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/xmerl/src/xmerl_lib.erl b/lib/xmerl/src/xmerl_lib.erl
index 6402f1cbeb..aeb821f411 100644
--- a/lib/xmerl/src/xmerl_lib.erl
+++ b/lib/xmerl/src/xmerl_lib.erl
@@ -160,8 +160,9 @@ expand_element(E = #xmlText{}, Pos, Parents, Norm) ->
E#xmlText{pos = Pos,
parents = Parents,
value = expand_text(E#xmlText.value, Norm)};
-expand_element(E = #xmlPI{}, Pos, _Parents, Norm) ->
+expand_element(E = #xmlPI{}, Pos, Parents, Norm) ->
E#xmlPI{pos = Pos,
+ parents = Parents,
value = expand_text(E#xmlPI.value, Norm)};
expand_element(E = #xmlComment{}, Pos, Parents, Norm) ->
E#xmlComment{pos = Pos,