From: Pavel V. <cz3...@ti...> - 2004-11-02 11:42:54
|
I hope that mixing will bring the best, but there is famous saying (from Oscar Wild I think). When one woman said to him that she is pretty and he is clever, so we tog= ether can have pretty and clever children, he replied that opposite outcome i.e= . ugly and dull children is also possible. So I will try my best to have nice and clever child, feature rich, simple= , fast and well documented and supported XML framework. Syntax hilighting is based on TJvHLEditor which is part of JCL/JVCL proj= ect lead by JEDI see http://www.delphi-jedi.org. There is another good option SynEdit, which is on also one of sf projects= . >-- P=F9vodn=ED zpr=E1va -- >Subject: RE: [Extgraph-developer] (no subject) >From: "Stefan Melis" <ste...@po...> >To: <Ext...@li...> >Date: Tue, 2 Nov 2004 12:08:41 +0100 > > >Pavel, > >I think that if you can combine the best of both worlds this must lead to >the best solution. >We might not need all the features XMLPartner offers us now but we might= >need them later. Implementing it now would be far more easy than when th= ere's >a jungle of code surrounding it. >As I am not up-to-date with XML, xsl, xpath and really anything surround= ing >XML, I would like to trust you in making the right decision, as you seem= >to know a hell of a lot more about it than I. > >One other thing, I saw in the (xgraph) demo app that you use a Syntax-hi= ghlighter, >which one are you using for this? > >Cheers, >Stefan > >-----Oorspronkelijk bericht----- >Van: ext...@li... [mailto:extgraph-dev= elo...@li...] >Namens Pavel Vrecion >Verzonden: dinsdag 2 november 2004 11:31 >Aan: Ext...@li... >Onderwerp: [Extgraph-developer] (no subject) > >I took a look at TurboPower XML Partner which is Pascal implementation of >XML DOM (Document Object Model) and other XML related technologes like SAX >(event based) parser, xpath and xsl processing .... >Question is is to switch to it. >I would like to summarize pros and cons, but before I must describe curr= ent >status a little. >In current version XML processing is based on my library which I call XO= bjects. >Intention of XObjects is to create easy to use XML framework aimed espec= ially >at database and xml processing. >From implemntation recommendations from w3c.org it differs in following areas. >Condtradictory to usual DOM it works with fewer objects. Typical example= >is XML element and attribute. Usually these are implemented as different= >objects, I use only one for both XML node which has type flag. Advantag= es >of this approach is that there is less to explain, programmer can work, learn >and understand fewer objects and processing of XML data is more straight= forward. > For example you need to store incomming XML data into database. Typical= ly >sometimes are data stored in elements and/or attributes. Using usual DOM= >implementation you must find if requiered are stored in element or attri= bute >and then use DOM object accordingly. Using XObjects you just do not care= >while both are the same and you work with Node.Name and Node.Value. >Another added value is data type. XML can be typed and XObjects takes ca= re >about typecastings and conersions. You can use for example Node.AsString= , >AsNumber, AsBoolean, AsDate .... Sometimes decimal deilimiter is point,= >sometimes comma. In datetime types there is jungle. >Another valuable trick is that during parsing element names are not stor= ed >in String value, but it is refernce to sorted StringList. It means that redundant >in memory strings are automatically removed, and taska like finding all element >with given name is much faster, while binary search and direct addressin= g >is used instead of repeated sequence searches. > >I compared performace of XObjects and XMLPartner on large xml files (2MB= >+) and I found expected results. While XObjects parsing time is longer, >it consumes less memory. In both cases, memory and time is about 30%. >I have also found that TurboPower made DOM extensions very similar to mi= ne. >For example they have option to create Attribute and Element string list= s. > >I have discussed advantages of XObjects , now I will make commented list= >of XML Partner TurboPower solution. >- XML Partner has broader support of character encoding, especially they= >suport more UTF versions. It seams that there is not sufficient support of >national character sets, which is neither in XObjects, but is in OpenXML= , > which is yet another pascal XML DOM implementation. >- SAX like event based parser, in XObjects misiing >- faster, but more memory consuming, parsing >- validation against DTD, good error handling >- XPath implementation, feature that is in XObjects in development >- buffered streams, this feature enables processing of data larger than available >memory, missing in XObjects >- XSLT processing and transformations to HTML, XML, text and RTF, very good >feature that can enhance processing capabalities in the future >- very good documentation 500+ pages manual and winhelp, XObjects has al= most >none >- broader support and probably stability, while XML Partner has been use= d >longer and in far more installations. > >This leads me to an idea to use extended XML Partner and switch to it fr= om >XObjects. Features probably can enhanced so, that we can have the best from >both worlds. It would probably also mean to became a developer of XML Partner >to ensure, that new added features will be present in future releases. > > >________________________________________________________________________= _ > >Uspora az 30 % na POVINNEM RUCENI! Mimoradne ceny pro auta starsi 10 let= ! >Pojisteni pripojneho vozidla zdarma. 800 100 777 > >http://adsweb.tiscali.cz/csob.html > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE LinuxWorld Read= er's >Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=CCk >_______________________________________________ >Extgraph-developer mailing list >Ext...@li... >https://lists.sourceforge.net/lists/listinfo/extgraph-developer > > > > > >------------------------------------------------------- >This SF.Net email is sponsored by: >Sybase ASE Linux Express Edition - download now for FREE >LinuxWorld Reader's Choice Award Winner for best database on Linux. >http://ads.osdn.com/?ad_idU88&alloc_id=12065&op=3Dclick >_______________________________________________ >Extgraph-developer mailing list >Ext...@li... >https://lists.sourceforge.net/lists/listinfo/extgraph-developer _________________________________________________________________________= Uspora az 30 % na POVINNEM RUCENI! Mimoradne ceny pro auta starsi 10 let!= Pojisteni pripojneho vozidla zdarma. 800 100 777 http://adsweb.tiscali.cz/csob.html |