Xml2lua Versions Save

XML Parser written entirely in Lua that works for Lua 5.1+. Convert XML to and from Lua Tables 🌖💱

v1.6-1

1 year ago

Contributions from @nilzao and @doj Thank you all.

v1.5-2

2 years ago

v1.4-5

3 years ago
  • Close #54

v1.4-2

3 years ago

v1.4-1

3 years ago

Fix conversion of arrays to XML, correctly using the name of the array as tag names instead of using their indexes. For instance, consider the following XML:

<object>
    <item>item 1</item>
    <item>item 2</item>
</object>

That XML is converted to the following lua table, where item is an array:

object = {
    item = {'item 1', 'item 2'}
}

Converting such a table back to XML was wrongly resulting in:

<object>
    <1>item 1</2>
    <2>item 2</2>
</object>

Now the conversion from the lua table returns the same XML shown at the top of this document.

v1.4-0

3 years ago

Ensures all attributes are included when serializing a Lua table to XML.

v1.3-0

4 years ago

Introduces the xml2lua.toXml() function to convert a Lua Table to its XML representation. Check example4-table2xml.lua for details.

v1.1-1

6 years ago

Just fix an issue with the rockspec file to download the module using luarocks.

v1.1-0

6 years ago

Now the module works with Lua 5.1 to 5.3.

v1.0-1

6 years ago

Small fix in the parser.