lua-users home
lua-l archive

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

On Mar 29, 2011, at 3:59 PM, steve donovan wrote:

> But, it cannot represent arbitrary XML, such as <div>here is
> <b>text</b>for you</div>,

Try  <div><span>here is</span><b>text</b><span>for you</span></div> instead :P

But in general, yes, it's more tailored for structured data (ala JSON) than arbitrary text markup (ala HTML). 

> and in general element order cannot be
> preserved on output.

Well, that's just an implementation detail, no? After all,  one could very well use a sorted map [1] to preserve the order of the elements if one is so inclined.