[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: What would be a good representation of XML tree as Lua tables?
- From: Dirk Laurie <dirk.laurie@...>
- Date: Mon, 22 Aug 2016 18:19:33 +0200
2016-08-21 20:09 GMT+02:00 Soni L. <fakedme@gmail.com>:
> Treat tables as lists.
>
> You may want the first element to be a tag name. Alternatively you may want
> the element [0] to be a tag name.
>
> For attributes, treat them as string keys.
The above (taking the "alternatively") is what LHF's module does.