Phrogz / SLAXML

SAX-like streaming XML parser for Lua

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Omitting all children of an element doesn't self-close

Phrogz opened this issue · comments

S = require'slaxdom'
doc = S:dom[[<r><k xmlns="die"/></r>]]
print(S:xml(doc,{omit={'die'}}))
--> <r></r>

Expected output is <r/>.