File xml.lua
Functions
string.writeXML (t, indent, spacing) | Write a table as XML. |
Functions
- string.writeXML (t, indent, spacing)
-
Write a table as XML. The input format is assumed to be that output by luaexpat.
Parameters
- t: table to print. In each element, tag is its name, attr is the table of attributes, and the sub-elements are held in the integer keys
-
indent: indent between levels (default:
"\t"
) - spacing: space before every line