lua-users home
lua-l archive

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



ok. Can I also modify the table, then save it back..? ;)


30.1.2005 kello 16:21, Javier Guerra kirjoitti:

 On Sunday 30 January 2005 7:19 am, Asko Kauppi wrote:
What I mean by 'seamless' is really, truly, that.  Like dofile(
"mydata.xml" ) and getting a Lua table returned.  Hmm.. anyone up for
it?

easy (with luaexpat):

require "compat-5.1"
require "lxp.lom"

xmltable = lxp.lom.parse (io.open ("xmlfile.xml","r"):lines ())

done!

--
Javier