[mythtv] [PATCH] mythgame xml reading

Isaac Richards ijr at po.cwru.edu
Sat Sep 4 21:20:00 EDT 2004


On Saturday 04 September 2004 07:01 pm, Charlie Brej wrote:
> Mame since 0.83 has not been supporting -listinfo. This patch reads the
> -listxml format instead. Tested with mame 0.86 and 0.83 .
>
> Couple of points:
> I did want to use the Qt xml librarys but these insist on reading and
> parsing the whole file (35Mb) which then fills up all available memory and
> crashes (even on 1Gb machines). Instead the parsing is done by hand. This
> does make a couple assumptions like: no line breaks in the middle of
> definitions, all definitions must start on a new line.

You do know that there are two ways of parsing supported by Qt - DOM (which 
reads the full file), and SAX (which parses on the fly), right?

Isaac


More information about the mythtv-dev mailing list