From koffice-devel Mon Oct 31 08:16:28 2005 From: Ariya Hidayat Date: Mon, 31 Oct 2005 08:16:28 +0000 To: koffice-devel Subject: Re: plan for lightweight DOM implementation Message-Id: X-MARC-Message: https://marc.info/?l=koffice-devel&m=113074659432558 > 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 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