[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: Parsing XML
- From: Russell Haley <russ.haley@...>
- Date: Mon, 08 Aug 2016 12:25:01 -0700
Not sure if this fits your needs but I have used LuaXML with good results:
It's C so you'll have to account for building the binary. I had to patch my lua build to include -fPIC to support it but that was on FreeBSD. I now ensure that flag is included in all my builds including GNU/Linux.
Sent from my BlackBerry 10 smartphone on the Koodo network.
From: Luiz Henrique de Figueiredo
Sent: Monday, August 8, 2016 12:20 PM
To: Lua mailing list
Reply To: Lua mailing list
Subject: Re: Parsing XML
> How can I access the document via element names instead?
Get my lxml at
Replace the dump function in test.lua by the code below.
It seemed to work for me. Adapt as needed.
local function dump(t)
for k,v in pairs(t) do
if interest[k] then print(k,v) end
for k,v in ipairs(t) do
if type(v)=="table" then