View Full Version : XML Parsers
pitfiend
18-05-2012, 04:47 AM
Can you recomend a good xml parser? better if it is a fluent one. Native pascal, open source and little footprint are a requirements.
azrael11
18-05-2012, 12:25 PM
Can you recomend a good xml parser? better if it is a fluent one. Native pascal, open source and little footprint are a requirements.
OmniXML.... Native Pascal, open source....
http://code.google.com/p/omnixml/
Stoney
18-05-2012, 01:18 PM
If you are using FreePascal, why not use the XML units that come with FreePascal? There is a tutorial here: http://wiki.freepascal.org/XML_Tutorial
If you need Delphi support you should try Very Simple XML: http://blog.spreendigital.de/2011/11/10/verysimplexml-a-lightweight-delphi-xml-reader-and-writer/ Check out the first omment on that blog article for a FPC 2.6 + Delphi compatible version.
pitfiend
18-05-2012, 02:42 PM
If you are using FreePascal, why not use the XML units that come with FreePascal? There is a tutorial here: http://wiki.freepascal.org/XML_Tutorial
If you need Delphi support you should try Very Simple XML: http://blog.spreendigital.de/2011/11/10/verysimplexml-a-lightweight-delphi-xml-reader-and-writer/ Check out the first omment on that blog article for a FPC 2.6 + Delphi compatible version.
Delphi user, thanks for the links. Honestly I tried to understand OmniXML, found it confusing.
AthenaOfDelphi
18-05-2012, 08:46 PM
Hi pitfiend,
I've always used the standard Microsoft one. Can be a pain in the butt but when you've gotten used to it, it's not so bad.
Any reason why you don't want to use it?
pitfiend
19-05-2012, 01:03 AM
Hi pitfiend,
I've always used the standard Microsoft one. Can be a pain in the butt but when you've gotten used to it, it's not so bad.
Any reason why you don't want to use it?
Dependencies, I don't like them and want maximum portability. As I'm planning to eventually switch off Delphi, I want something that's not a pain in the butt to maintain, also want something flexible too (that's why fluent xml comes to my mind).
If I don't find anything that comply with my needs, maybe going to build that library myself. Hope to be lucky ;D.
AthenaOfDelphi
19-05-2012, 10:05 AM
Fair enough :-)
I would be interested to know what your final choice is.
The one that is bundled with FPC is fairly decent from what I can tell. I'm actually just looking at it as a good alternative to binary files for cross-platform development.
code_glitch
19-05-2012, 10:43 PM
Wow, those are some nice finds guys. Checking out omnixml first since it looks nice - I had a few snippets for the standard FPC stuff. I'll see if I can dig any up in case they're of use to you guys :)
Of course, I do prefer managing XML from the ground up - but thats me ;)
pitfiend
19-05-2012, 11:30 PM
Here's a brief list of the ones I have tried:
- NativeXML (http://www.simdesign.nl/xml.html)
- XMLVerySimple (http://blog.spreendigital.de/2011/11/10/verysimplexml-a-lightweight-delphi-xml-reader-and-writer)
- XMLParser (http://www.destructor.de)
- OmniXML (http://code.google.com/p/omnixml)
- SimpleXML (https://gitorious.org/delphi/simplexml)
- KDSXML (http://sourceforge.net/projects/kdsxml)
- SAX for Pascal (http://saxforpascal.sourceforge.net)
- DOM XML (the one that comes with delphi)
Some of them are DOM Model others are SAX, and some doesn't have a particular model. Big trouble of some is they are slow or have a big footprint. For the moment I haven't decide yet which one to use. Still need one very fast and able to manage really big xml files. BTW, only Omni and Delphi (MSDOMXML) has fluent access.
Powered by vBulletin® Version 4.2.5 Copyright © 2024 vBulletin Solutions Inc. All rights reserved.