lua-users home
lua-l archive

[Date Prev][Date Next][Thread Prev][Thread Next] [Date Index] [Thread Index]


> Am 22.08.2016 um 05:38 schrieb Martin <eden_martin_fuhrspam@gmx.de>:
> 
> 
> 
> On 16-08-21 07:45 AM, Marc Balmer wrote:
>> I am working on code to easily create XML trees from Lua tables.  What would,
>> in your opinion, be a comfortable Lua table notation of XML trees, expressed
>> as Lua tables?
>> 
> For me for structure like
> 
> <data>
>  <el attr1="value1", attr2="value2">
>    el_data
>  </el>
>  <el attr1="value1", attr2="value2">
>    el_data
>  </el>
> </data>
> 
> expressions "xml.data.el[1].value" or
> "xml.data.el[#xml.data.el].attrs['attr2']" looks convenient.
> 

I don't want to access XML from Lua, I want to represent data as Lua tables,
which can then be converted to XML.  I want to _PRODUCE_ xml, not parse
it.