lua-users home
lua-l archive

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


On Wednesday 07 March 2007, Greg McCreath wrote:
> I do like the element.sub-element.sub-element.@attribue-name type syntax of
> E4X and it's not too far away from lua syntax is it.  Javascript also uses
> associative arrays a lot.

that seems nice, until you get some XMLs with lots of text content intermixed 
with tags (think a HTML paragraph with <span>s in it), or an element with 
several subelements with the same tagname (a table row with several fields, 
or a database result, etc).

in the end, with so different syntaxes as XML and Lua, it seems you can get 
three types of mappings:

1) limited.   only works with some contents
2) ugly.   (DOM-like)
3) flexible... a BIG project.  i've tried a couple of times, nothing usable by 
a loong shot.

if you want some help with (3); i don't have any ideas, but could concote 
nasty examples to see how best to express them :-)


-- 
Javier

Attachment: pgpjn1QQas0W_.pgp
Description: PGP signature