Re: [cowiki-dev] Complete reverse parser refusal
"Daniel T. Gorski" <[email protected]> Tue, 9 Aug 2005 06:18:04 +0200
| Newsgroups | gmane.comp.php.cowiki.devel |
|---|---|
| Message-ID | <20050809041804.GZ545@bantha> |
On 07 Aug 15:37, Archie Campbell wrote: > OK. Obviously option 1 is superior to option 2, because a pseudo-XML > eater is required in both options, plus option 1 involves the production > of strict XML, which will no doubt become useful at a later date. Full ACK. > 1. > > Therefore, I'm going to start on a class.WikiPseudoXmlConverter.php that > will take legacy wiki database node data, in the old pseudo-XML format > and output strict XML. > > <link strref="Hakan Küçükyilmaz">Contributor</link> > > will become... > > <link><strref><![CDATA[Hakan > Küçükyilmaz]]></strref><![CDATA[Contributor]]></link> Such a conversion can be made _once_ by the installer (and its so called "Migrator" classes). That means, that you won't need to check on each request (read and save), whether you are working with a legacy document or with a (new) strict one. This seems to be a proper solution to me - and future oriented. BTW: As I started with coWiki, PHP 5 did not support the DOM-XML by default as it does today. Hence a rewriting of the event based XML reader/writer we have now, to use the meanwhile build-in DOM-XML reader/writer would ease much of the work and would be less error prone. <http://cowiki.tigris.org/issues/show_bug.cgi?id=41> regards dtg