From koffice-devel Sat Nov 05 10:20:32 2005 From: Thomas Zander Date: Sat, 05 Nov 2005 10:20:32 +0000 To: koffice-devel Subject: Re: plan for lightweight DOM implementation Message-Id: <200511051120.33724.zander () kde ! org> X-MARC-Message: https://marc.info/?l=koffice-devel&m=113118610313115 MIME-Version: 1 Content-Type: multipart/mixed; boundary="--===============0684685403==" --===============0684685403== Content-Type: multipart/signed; boundary="nextPart4405256.I9XPpWOJbN"; protocol="application/pgp-signature"; micalg=pgp-sha1 Content-Transfer-Encoding: 7bit --nextPart4405256.I9XPpWOJbN Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: quoted-printable Content-Disposition: inline On Saturday 05 November 2005 10:36, Ariya Hidayat wrote: > On the second thought, I think your method is very good to check the > correctness of load-on-demand code as it is closer to QDom rather than > my JDOM-like stuff. It would be useful as nice intermediate step, and > even easier to test and would give a better reference for further > implementation, so I think I will also try it. This sounds more then a bit weird to me; the suggestion moves quite a bit=20 away from the DOM design in requiring the caller to have more knowledge=20 about implementation of the dom-library. =46rom your reply I gather that you intend to develop this API and testing= =20 it in, for example, kspread. I don't think that is a good idea as it will take too much time and the=20 loading can not test all corner cases of the API. I suggest you write=20 some unit tests that comes with an XML file to test all ideas and corner=20 cases in it. Expanding the tests and xml file(s) as your implementation grows more=20 mature. This requires you write the thing using multiple classes and not one huge=20 class so your tests actually can 'look inside' the implementation. It really is the only way to get this to be a stable library any time=20 soon :) =2D-=20 Thomas Zander --nextPart4405256.I9XPpWOJbN Content-Type: application/pgp-signature -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.1 (GNU/Linux) iD8DBQBDbIdxCojCW6H2z/QRAuEKAKC/lOLA0fw26ALXUBnT6GCWaRaKVACguMKN 2/Q5aqheRxNN6u+J/jW51Jc= =uY4X -----END PGP SIGNATURE----- --nextPart4405256.I9XPpWOJbN-- --===============0684685403== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline _______________________________________________ koffice-devel mailing list koffice-devel@kde.org https://mail.kde.org/mailman/listinfo/koffice-devel --===============0684685403==--