LuaXML
Using the LuaXML module provides a very simple and natural mapping between the XML data format and Lua tables. Allowing you to parse XML data just using Lua's normal table access and iteration methods. This may be useful in cases when talking to 3rd party devices or services that use XML formatting for their data.

Creates a new LuaXML object.

Appends a new subordinate LuaXML object to an existing one, optionally sets tag.

Iterate subelements (“XML children”) as key – value pairs.

Converts a string from XML encoding.

Converts a string to XML encoding.

Iterates a LuaXML object, invoking a callback function for all matching (sub)elements.

Match XML entity against given (optional) criteria.
Note: If you want to test for a specific attribute value
, you also have to supply a key
– otherwise value
will be ignored.

Loads XML data from a file and returns it as table.

Saves a Lua var as XML file.

Converts an XML string to a Lua table.

Sets or returns tag of a LuaXML object.

Converts any Lua var to an xml string.

Recursively parses a Lua table for a substatement fitting to the provided tag and attribute.

Registers a custom code for the conversion between non-standard characters and XML character entities.
Portions of this topic are reprinted under permission of the LuaXML license.