lua-users home
lua-l archive

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


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

Attachment: pgph8dFoBjwSF.pgp
Description: PGP signature