manoelcampos / xml2lua

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱
MIT License
290 stars 74 forks source link

empty-elements support? #78

Closed Be1zebub closed 1 year ago

Be1zebub commented 2 years ago

I would like to have support for parsing empty-elements example:

<img src="foo.png">

https://www.w3.org/TR/xml/#dt-empty

nilzao commented 1 year ago

empty-elements should be:

<img src="foo.png"/>