lua-users home
lua-l archive

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


On Fri, Jan 24, 2014 at 12:12 AM, Coda Highland <chighland@gmail.com> wrote:
On Thu, Jan 23, 2014 at 2:13 PM, Daurnimator <quae@daurnimator.com> wrote:
> On 24 January 2014 07:53, Luiz Henrique de Figueiredo
> <lhf@tecgraf.puc-rio.br> wrote:
>> Yeah, I know... I'll see what I can do. Thanks again.
> <foo qwe="rty">text<bar/>more</foo> looks like: {
>     name = "foo";
>     attr = { qwe = "rty" };
>     tags = {
>         { name = "bar" , attr = {} , tags = {} } ;
>     } ;
>     "text";
>     { name = "bar" , attr = {} , tags = {} } ; -- Same object as above
>     "more";

This is more or less what I was suggesting as being workable but not
particularly elegant.

Of course, this tradeoff is why JSON is a thing.

/s/ Adam


I am preparing a luarock for a bare bones, very fast XML parser based on RapidXML. I have not published it yet as I want to fix luadist build and make sure I can build and install the rock on MinGW. Lua table - XML is totally transparent. Doing

$ git clone https://github.com/lubyk/lub.git
$ cd lub
$ luarocks make
$ cd ..
$ git clone https://github.com/lubyk/xml.git
$ cd xml
$ luarocks make

Should build and install the pre-release just fine.

Documentation: http://doc.lubyk.org/xml.html


                                                               Gaspard