aboutsummaryrefslogtreecommitdiffstats
path: root/lib/xmerl/src
diff options
context:
space:
mode:
authorAnthony Ramine <[email protected]>2010-12-07 16:39:44 +0100
committerLars Thorsen <[email protected]>2011-11-11 11:58:42 +0100
commit64a41197d8d5a292348d38467b28a041a95c500b (patch)
treea090d4f219f991b19d5f4663d8962a5f0d241d7f /lib/xmerl/src
parent2b11547e61112b102a02de6b30c11c37e34ca21b (diff)
downloadotp-64a41197d8d5a292348d38467b28a041a95c500b.tar.gz
otp-64a41197d8d5a292348d38467b28a041a95c500b.tar.bz2
otp-64a41197d8d5a292348d38467b28a041a95c500b.zip
Track parents and namespace in `#xmlAttribute` nodes
Diffstat (limited to 'lib/xmerl/src')
-rw-r--r--lib/xmerl/src/xmerl_scan.erl2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/xmerl/src/xmerl_scan.erl b/lib/xmerl/src/xmerl_scan.erl
index 0c84ae5775..740f825053 100644
--- a/lib/xmerl/src/xmerl_scan.erl
+++ b/lib/xmerl/src/xmerl_scan.erl
@@ -2094,6 +2094,7 @@ scan_element(T, S, Pos, Name, StartL, StartC, Attrs, Lang, Parents,
P+1
end,
Attr = #xmlAttribute{name = AttName,
+ parents = [{Name, Pos}|Parents],
pos = AttrPos,
language = Lang,
nsinfo = NamespaceInfo,
@@ -2161,6 +2162,7 @@ processed_whole_element(S=#xmerl_scanner{hook_fun = _Hook,
TempNamespace = Namespace#xmlNamespace{default = []},
ExpAttrsX =
[A#xmlAttribute{
+ namespace=Namespace,
expanded_name=expanded_name(
A#xmlAttribute.name,
A#xmlAttribute.nsinfo,