[Date Prev][Date Next][Thread Prev][Thread Next]
[Date Index]
[Thread Index]
- Subject: Re: XMLinLua
- From: steve donovan <steve.j.donovan@...>
- Date: Thu, 5 Jul 2012 11:56:43 +0200
On Thu, Jul 5, 2012 at 11:45 AM, Dirk Laurie <dirk.laurie@gmail.com> wrote:
> I'll postpone further development — and bail out of this thread — until
> I've had a look at what Steve did in Penlight. As I've said before, if
> I had known about that I would not have rolled my own.
The code is mostly 'inherited' from Mathew, and all strings are
escaped in that model.[1] Basically, you move to the LOM
representation as soon as possible, manipulate that tree, and _then_
write it out as a nice XML string. I've also explored a few ideas
like template-based structural matching on LOM trees. (There is a
manual ;))
steve d.
[1] except in Orbiter, I had a means to escape from escaping, because
of the unholy relationship between JavaScript and HTML (not XHTML!)