On Sat, Oct 16, 2004 at 09:42:20AM +0100, Angus Leeming wrote:

> Is the plan to feed the dtd to the parser, so that it parses only lyx docs
> and not some other well formed but otherwise arbitrary file?
> 
> I was thinking about the best way to proceed on the way home last night. Do
> we really need to write our own xml parser when there are many *good* and
> *proven* ones out there already. Parsing the thing isn't / shouldn't be a
> problem. Turning that into a LyX data structure in memory is the problem.

Using an off the shelf  parser actually handles all sorts of freaky
things we shouldn't worry it. It's IMHO a requirement that we use one...

> Given that expat already has the machinery we need, so that all you need do
> is register handler functions with the parser, I'd start off with that.

Or we could use libxml2 which seems to be everywhere?

john

Reply via email to