lua-users home
lua-l archive

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


Is there a pure-Lua lib, by any chance?

Actually, I tried using the "Classic Lua-only version" listed at
http://lua-users.org/wiki/LuaXml. When I run the program, I get the
following error:

   unexpected symbol near `%'

I'm kinda new to Lua, so excuse me if I'm missing something very obvious.

Thanks.

On 6/3/05, Fabian Peña <fapenia@adinet.com.uy> wrote:
> Please check it.
> 
> http://www.keplerproject.org/luaexpat/
> http://www.keplerproject.org/luaexpat/lom.html
> 
> 
> 
> 
> 
> Premshree Pillai escribió:
> 
> >Hi list,
> >
> >Is there a simple XML parser (preferably DOM) for Lua? I saw the
> >LuaXml wiki (http://lua-users.org/wiki/LuaXml), and kinda got
> >confused.
> >
> >My requirements are very simple:
> >- I need to be able to get node values for elements
> >(docroot['some_ele'][2].text)
> >- I need to be able to get attribute values
> >(docroot['some_ele'].attribute('foo'))
> >
> >Any help would be appreciated. Thanks!
> >
> >
> >
> 
> 


-- 
Premshree Pillai
http://www.livejournal.com/users/premshree/