[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: Lua+XML = forced love? (Re: FYI: what's OOP's jargons and complexities?)
- From: Javier Guerra <javier@...>
- Date: Sun, 30 Jan 2005 09:21:23 -0500
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:
pgp6fP_OeRBb9.pgp
Description: PGP signature