lua-users home
lua-l archive

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

I am fairly new to Lua and trying to parse xmls with LuaXml

My xml  is like -

           <name> abc </name>
           <name> xyz </name>

 Say I want to list
 1)id of specific user 
 2)ids for all users

I performed-

local xfile = xml.load("UserXml.xml")

local users = xfile:find("user")

but table which is returned, consists value for first user only

I went through answer at -

but this looks much heavy in real time situations and as complex as performing string matching on xml file

Could you please suggest a simpler and efficient way to achieve this using LuaXml?