[Date Prev][Date Next][Thread Prev][Thread Next]
- Subject: Re: XML Support for Penlight?
- From: Petite Abeille <petite.abeille@...>
- Date: Mon, 28 Mar 2011 21:18:36 +0200
On Mar 28, 2011, at 8:41 PM, Lucas Zawacki wrote:
> the end of the day it's more about the mindset of the coder, in Lua
> people tend to like it very simple.
Talking of which, I like David Sklar's BadgerFish convention for translating an XML document into a Lua table:
Here is a simplistic implementation:
local XML = require( 'XML' )
local anXML = XML( aContent ) -- e.g. http://www.lua.org/news.rss
print( anXML.rss.channel.description[ '$' ] )
> What's happening in the Lua world.