Re: [lazarus] Working with XML: crosscompatibility
I just found that the FPC XML Reader has a nasty bug at least in FPC 2.0.4 this XML will cause av ?xml version=1.0 encoding=UTF-8? DCPlusPlus /DCPlusPlus This is because of this code in XMLRead line 671 in Function ExpectProlog // Check for (doctypedecl Misc*)?[28] if CheckForChar('D') then begin ExpectString('OCTYPE'); --- This raises an Exception // create the DTD object Any other XML Processors that would work in Delphi and Lazarus/FPC ? Razvan _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
On Mon, 16 Jul 2007, Razvan Adrian Bogdan wrote: I just found that the FPC XML Reader has a nasty bug at least in FPC 2.0.4 this XML will cause av ?xml version=1.0 encoding=UTF-8? DCPlusPlus /DCPlusPlus This is because of this code in XMLRead line 671 in Function ExpectProlog This bug is no longer present in the latest versions of FPC. Not in 2.1.5, not in 2.3.1. Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Guten Tag Razvan Adrian Bogdan, am Montag, 16. Juli 2007 um 13:26 schrieben Sie: RAB I just found that the FPC XML Reader has a nasty bug at least in FPC 2.0.4 RAB this XML will cause av RAB ?xml version=1.0 encoding=UTF-8? RAB DCPlusPlus RAB /DCPlusPlus RAB This is because of this code in XMLRead line 671 in Function ExpectProlog RAB // Check for (doctypedecl Misc*)?[28] RAB if CheckForChar('D') then RAB begin RAB ExpectString('OCTYPE'); --- This raises an Exception RAB // create the DTD object RAB Any other XML Processors that would work in Delphi and Lazarus/FPC ? RAB Razvan maybe: http://www.mostworks.de/index.php?option=com_contenttask=viewid=29Itemid=45 it should run unter fpc too RAB _ RAB To unsubscribe: mail [EMAIL PROTECTED] with RAB unsubscribe as the Subject RABarchives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
David Lyon ha scritto: Brett Hunter wrote: Has anyone tried NativeXML? I have compiled it under both Delphi and Lazarus and don't seem to have any problems (it took about 5 minutes to change some code to get it to work). it looks good... but I'm after something that is open source also _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives I'm using http://www.mostworks.de and I'm quite satisfied. I tryed it only on Delphi, cause on Lazarus I still have the code with DOM and I don't have time to change it, but I'm sure it will work on Lazarus too cause who sent me it (in that mailing list) uses Lazarus and reads that mailing list. Alvise p.s. I saw that the way of taking the data from the xml is faster too than other libraries... (less rows of code). _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Brett Hunter wrote: Has anyone tried NativeXML? I have compiled it under both Delphi and Lazarus and don't seem to have any problems (it took about 5 minutes to change some code to get it to work). it looks good... but I'm after something that is open source also _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
On Sat, 7 Jul 2007, David Lyon wrote: Tiziano_mk wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Time ago I found OpenXML: http://www.philo.de/xml/ but never had the time to play with it... I just posted a message on their list and they were of the opinion that there were some incompatabilities/problems with the fpc compiler. And it wasn't possible to do a compile. This was several months ago. They're not sure if the problems still exist. Still I think this might be the most cross platform (potential) option. It could be worth spending some time trying with this ? any opinions ? Florian has been doing some work recently on the compiler, so it can compile most of Delphi's VCL. There is no immediate reason why their package should not compile with FPC (unless they use assembler). Just give it a try with a recent snapshot... Michael. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Michael Van Canneyt wrote: Florian has been doing some work recently on the compiler, so it can compile most of Delphi's VCL. There is no immediate reason why their package should not compile with FPC (unless they use assembler). Just give it a try with a recent snapshot... maybe I might give it a go sometime this week and see what happens I need exactly the same thing myself, xml under delphi, lazarus, windows and linux... No promises if it will work or not _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
RE: [lazarus] Working with XML: crosscompatibility
Has anyone tried NativeXML? I have compiled it under both Delphi and Lazarus and don't seem to have any problems (it took about 5 minutes to change some code to get it to work). Ciao -Original Message- From: David Lyon [mailto:[EMAIL PROTECTED] Sent: Saturday, 7 July 2007 6:47 PM To: lazarus@miraclec.com Subject: Re: [lazarus] Working with XML: crosscompatibility Tiziano_mk wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Time ago I found OpenXML: http://www.philo.de/xml/ but never had the time to play with it... I just posted a message on their list and they were of the opinion that there were some incompatabilities/problems with the fpc compiler. And it wasn't possible to do a compile. This was several months ago. They're not sure if the problems still exist. Still I think this might be the most cross platform (potential) option. It could be worth spending some time trying with this ? any opinions ? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Tiziano_mk wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Time ago I found OpenXML: http://www.philo.de/xml/ but never had the time to play with it... I just posted a message on their list and they were of the opinion that there were some incompatabilities/problems with the fpc compiler. And it wasn't possible to do a compile. This was several months ago. They're not sure if the problems still exist. Still I think this might be the most cross platform (potential) option. It could be worth spending some time trying with this ? any opinions ? _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
I'm following this discussion, two logical contenters would be ms-xml and openxml... anybody with any ideas about what their status is ? I asked on the openxml list and apparently fpc won't compile openxml. Not sure if this is still true. Alvise Nicoletti wrote: Luiz Americo Pereira Camara ha scritto: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives Hi, can you give me some tips about that cross compilation thing ? Or maybe can you send me the unit you already ported to delphi? I'm using DOM in the client so I'd like to have the same code on the server... _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Alvise Nicoletti wrote: Luiz Americo Pereira Camara ha scritto: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives Hi, can you give me some tips about that cross compilation thing ? It seems is not more necessary. See Sergei message. Just get the source from svn or fpc 2.1.4 and compile the units with Delphi Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
On Thu, Jun 28, 2007 at 01:23:09PM -0300, Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. I use the Lazarus dom, xmlcfg etc units under Delphi also. But mostly for configuration file (and application GUI state saving) purposes. Afaik the lazarus ones are like the FPC based, but ansi and not widestring based. There were some modifications IIRC, but they were pretty trivial. _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Lee Jenkins wrote: Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz And if that doesn't work for you (which would be nice to be able to use the same code base in delphi and FPC/Laz) I would recommend looking at OmniXML for delphi. I've used it for a couple of years now and it works well. I have been wondering this myself. What about SAX for Pascal, http://saxforpascal.sourceforge.net . Also, how compatible is SAX for Pascal with the FPC SAX implementation? George _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Lee Jenkins wrote: Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz And if that doesn't work for you (which would be nice to be able to use the same code base in delphi and FPC/Laz) I would recommend looking at OmniXML for delphi. I've used it for a couple of years now and it works well. I have been wondering this myself. What about SAX for Pascal, http://saxforpascal.sourceforge.net . Also, how compatible is SAX for Pascal with the FPC SAX implementation? George _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Lee Jenkins wrote: Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz And if that doesn't work for you (which would be nice to be able to use the same code base in delphi and FPC/Laz) I would recommend looking at OmniXML for delphi. I've used it for a couple of years now and it works well. I have been wondering this myself. What about SAX for Pascal, http://saxforpascal.sourceforge.net . Also, how compatible is SAX for Pascal with the FPC SAX implementation? George _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Friday, June 29, 2007, 7:11:10 PM, Marco wrote: MvdV On Thu, Jun 28, 2007 at 01:23:09PM -0300, Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. I use the Lazarus dom, xmlcfg etc units under Delphi also. But mostly for configuration file (and application GUI state saving) purposes. Afaik the lazarus ones are like the FPC based, but ansi and not widestring based. There were some modifications IIRC, but they were pretty trivial. During the last year I had made severe modifications to FPC XML units. The current version is fully compliant with W3C test suite, supports UTF-8 and UTF-16 encodings, XML 1.1, entity processing and DTD validation. This stuff (namely DOM.pp, XMLRead.pp, XMLWrite.pp, XMLUtils.pp and UriParser.pp from packages/base/netdb) also compile with Delphi 7 without any changes. I also successfully compiled Lazarus locally using modified FPC units, and it proves working. I did not release this patch to public for several reasons: a) The patch isn't complete - it just changes used units while all string variables outside those units remain ansi. b) There are known issues with WideStrings on Windows. Although at a glance everything seem not to be touched by these issues, I cannot be sure it really isn't. c) Performance issues - the Widestring-based reader is somewhat slower than current AnsiString-based. Nevertheless, if anyone is interested in incorporating these changes into Lazarus, I will send the patch. Best regards, Sergei Gorelkin _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Time ago I found OpenXML: http://www.philo.de/xml/ but never had the time to play with it... here you find an article about it: http://homepages.borland.com/ccalvert/TechPapers/Delphi/XMLSimple/XMLSimple.html on windows and with Delphi one should use Microsoft tools and MS XML... I prefer to ignore these sophisticated tecnolgies :-) tiziano _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives
Re: [lazarus] Working with XML: crosscompatibility
Luiz Americo Pereira Camara wrote: Alvise Nicoletti wrote: Hi... I have to parse xml both with Lazarus on linux (server) and Delphi on Windows (client). Actually, with Lazarus, I'm using the DOM, ReadXML, WriteXML units. Is there something that I can use in Delphi with the same code? Or, otherwise, is there some XML component compatible for both Delphi and Lazarus? Some time ago i ported the fpc dom unit to delphi. It was just a matter of changing the places of const sections, no change was made at all, if i remenber well. I can send to you but is a bit outdated. A better option is to try to compile the most recent fpc dom version, probably will be easy. Luiz And if that doesn't work for you (which would be nice to be able to use the same code base in delphi and FPC/Laz) I would recommend looking at OmniXML for delphi. I've used it for a couple of years now and it works well. -- Warm Regards, Lee _ To unsubscribe: mail [EMAIL PROTECTED] with unsubscribe as the Subject archives at http://www.lazarus.freepascal.org/mailarchives