manoelcampos / xml2lua

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

toXml got different result between 1.5-1 and 1.5-2 #63

Closed yanxianrui closed 3 years ago

yanxianrui commented 3 years ago

Hello, thanks for nice work.

example4-table2xml.lua in 1.5-1 got result as follows

`XML Representation

Palmas-TO Manoel Palmas-TO Breno Brasília-DF University of Brasília ` while got different one as `XML Representation Palmas-TO Manoel Palmas-TO Breno Brasília-DF University of Brasília ` in 1.5-2 Is this a feature of the new version?
manoelcampos commented 3 years ago

Thanks for reporting. The example passed the name for a surrounding tag when calling xml2lua.toXml(). That is not needed anymore. Them, it was just updated. Thanks for reporting.