Closed blueowl04 closed 5 years ago
Thanks for reporting. I've just fixed the issue.
Now it works for me. Thanks!
Just a question, I have noticed that empty elements are parsed into empty tables, not strings. Is that intentional? So, for example:
<item>
<abc>Hello</abc>
<empty />
</item>
is translated to
{
item = {
empty = {},
abc = "Hello"
}
}
Yes, it is. This is the only way to support multiple tags with the same name. Converting empty tags to string was the issue.
I have found that if a XML file contains two identical elements that are empty, xml2lua can't cope with that and crashes. This is a sample of problematic XML:
It produces the following error: