On Thu, May 9, 2013 at 10:52 AM, Richard Heck <rgh...@lyx.org> wrote:

I just had a look at those. He had an XML parser here:
http://www.lyx.org/trac/browser/lyxsvn/lyx-devel/branches/personal/larsbj/xml/src/support/xmlparser.h?rev=19478
but it appears to be based upon xmlpp, which I cannot get to compile on my machine. It's a very old library. An older version uses expat, which is pretty heavy duty.

I did some googling and found this page:
http://lars.ruoff.free.fr/xmlcpp/
which describes a bunch of free XML libraries and was updated 2/2012. Most of what's there is either (a) very large, like Xerces and libxml2, or else (b) a DOM-style parser, which is not what we wantm, I think. The best of the options appears to be:
http://www.fxtech.com/xmlio/
which is a very lightweight (53KB source) and simple, SAX-like parser. LGPL. It is also quite old, but it compiles just fine here. Of course, it also writes XML.

It could probably use some updating if we were going to use it, but the code is very simple, so this would be easy to do.

Is there a reason we would want to avoid libxml? I've found it to offer the best feature set and ease of use. It also ships with a set of excellent Python bindings, which we could incorporate into the Python we ship. Between the two, there is very little that wouldn't be possible from an XML processing standpoint.

We might even be able to incorporate some of the XSL processing that some of the users have been salivating over.

Reply via email to