On Fri, May 10, 2013 at 12:45 PM, Richard Heck <rgh...@lyx.org> wrote:
> The only significant worry here concerns stability: Could a Qt update break
> us? We already depend heavily on Qt, so this is not as large a concern as
> with depending upon other external libraries. And my sense is that these
> classes are likely to be pretty stable.

QXmlStreamReader looks perfect for parsing LyX XML.  QXmlStreamWriter
looks perfect for writing it.

I seriously doubt these will be unstable.  Note that writing [valid]
XML is much easier than reading it, so you could write your own stream
writer.  Reading actually isn't that hard either -- it helps to not
support external entities (and, indeed, QXmlStreamReader doesn't).
But really, XML itself is stable, and these libraries look
well-matched up to XML (as one would expect), so I see no reason for
there to be backwards incompatible API/ABI/semantic changes to them.
Removal, OTOH, is much harder to foresee, but in that case you can
just write your own streamers.

Nico
--

Reply via email to