projects
/
prosody.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Merge 0.10->trunk
[prosody.git]
/
tests
/
test_util_xml.lua
1
function parse(parse)
2
local x =
3
[[<x xmlns:a="b">
4
<y xmlns:a="c"> <!-- this overwrites 'a' -->
5
<a:z/>
6
</y>
7
<a:z/> <!-- prefix 'a' is nil here, but should be 'b' -->
8
</x>
9
]]
10
local stanza = parse(x);
11
assert_equal(stanza.tags[2].attr.xmlns, "b");
12
end