commit | 78a230ad43e9cdcc890c08a5001b40c6d15eec64 | [log] [tgz] |
---|---|---|
author | Radek Krejci <rkrejci@cesnet.cz> | Tue Jul 07 17:04:40 2015 +0200 |
committer | Radek Krejci <rkrejci@cesnet.cz> | Tue Jul 07 17:04:40 2015 +0200 |
tree | 8ea13cb928377506322f140599045a5777536105 | |
parent | 25b39611ab516518102da5f4aa055fb7cf52a93d [diff] |
xml BUGFIX asigning namespace to the elements sometimes, a correctly assigned namespace (defined in the node) was replaced by different (wrong) namespace inherited from parent.
diff --git a/src/xml.c b/src/xml.c index dfedb99..b22514c 100644 --- a/src/xml.c +++ b/src/xml.c
@@ -1055,7 +1055,7 @@ goto error; } - if (!nons_flag && parent) { + if (!elem->ns && !nons_flag && parent) { elem->ns = get_ns(parent, prefix_len ? prefix : NULL); }