[prev in list] [next in list] [prev in thread] [next in thread] 

List:       koffice-devel
Subject:    Re: plan for lightweight DOM implementation
From:       Ariya Hidayat <ariya () kde ! org>
Date:       2005-10-31 8:16:28
Message-ID: ba035dd10510310016m58e6bab0u8ada99dd4067f732 () mail ! gmail ! com
[Download RAW message or body]

> There are some things you don't need to try again and again to know the
> outcome; one of them is the usage of SAX in koffice as well as in all the
> other projects I used it in.
> Its almost like going back to a binary file format; its not to hard to
> implement, but its hell to do correctly (so it does not crash if the
> input file is wrong) and its even harder to maintain when, for example
> the fileformat changes slightly.

I agree with Thomas here. Due to the way SAX parser works, it will be
complete total rewrite as well. You could theoretically (I'm happy if
I'm wrong here) minimize the rewrite by redirecting the SAX handler to
form some hierarchical nodes (e.g. only for the <cell> tag), but that
is close to what I will do with the my plan anyway.

IIRC hierarchical parsing with DOM API (which is not impossible but
more awkward with SAX stuff) is nice for clipboard operations.


--
Ariya Hidayat, http://ariya.blogspot.com
http://www.google.com/search?q=ariya+hidayat&btnI
_______________________________________________
koffice-devel mailing list
koffice-devel@kde.org
https://mail.kde.org/mailman/listinfo/koffice-devel
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic