Login
Username:

Password:

Remember me



Lost Password?

Register now!
Sections
Who's Online
71 user(s) are online (62 user(s) are browsing Forums)

Members: 2
Guests: 69

trixie, orgin, more...
Support us!
Recent OS4 Files
OS4Depot.net





Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2006/11/22 17:57
From Italy, Rome
Posts: 587
Hello everyone,


looking for an advice.

Best easy to use xml library for c/c++ suitable for OS4 too?
The xml library should be suitable for mingw and compatible with AmigaOS too.


I tried libxml2, but it's a pain to make it work on mingw.

_________________
Retired
   Report Go to top

Re: Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 971
@AmigaBlitter

It depends on what you need. Expat is fast and available for OS4 in all forms (shared Amiga library, static lib, shared object) but it only provides an event-driven parser for which you need to write your own callback functions to handle the individual types of XML event. Plus, if you need a library that builds a DOM-tree representation of your XML file, which you can then manipulate, Expat will not help you.

In such a case you pretty much only have two options: libxml2 and libroxml (which you'll have to port yourself but last time I tried the porting was easy). libxml2 is much more heavyweight and memory-hungry but it's a cross-platform standard that has received a lot of testing and feedback over the years. Further, if you also need XSLT support then libxml2 is a natural choice because it twins with libxslt (developed by the same person). The latest version of libxml2 (2.9.7) has already been ported by MickJT and libxslt is in the pipeline (hasn't made it to OS4depot yet).

Hope this helps.

_________________
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon R5 230 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2006/11/22 17:57
From Italy, Rome
Posts: 587
@trixie

Thank you.

Very usefull info.

Speed is not a requirement, but eventually i need to manipulate xml.


_________________
Retired
   Report Go to top

Re: Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 971
@AmigaBlitter

If I were to develop my own project which requires manipulating XML files (i.e. retrieving data from the tree structure at any given time), and I didn't need the following features

- DTD or XML Schema validation
- XSLT support

then I'd probably give libroxml a try, mainly to make my program more "Amiga" and avoid unnecessary overhead (libroxml is targeted at embedded systems, so it's waaaaay leaner than libxml2).

On the other hand, libxml2 is a real cross-platform standard and is certainly more used and tested, so you'll have to decide where your priorities are.

_________________
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon R5 230 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top

Re: Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2006/11/22 17:57
From Italy, Rome
Posts: 587
@trixie

Thank you for the informations.

Tried libxml2 under mingw, but it crashes as soon an libxml2-2.dll is accessed.

Going to try libroxml.


_________________
Retired
   Report Go to top

Re: Best (and easiest) cross platform xml library?
Quite a regular
Joined:
2009/5/1 17:57
From Czech Republic
Posts: 971
@AmigaBlitter

Quote:
Going to try libroxml.

PM me if you need an OS4 build. I've just ported the latest public version (also fixing a few warnings that the original code produced when compiled with the -Wwrite-strings flag).

_________________
Smoke me a kipper, I'll be back for breakfast!

AmigaOne X5000 @ 2GHz / 4GB RAM / Radeon R5 230 / ESI Juli@ / AmigaOS 4.1 Final Edition
SAM440ep-flex @ 667MHz / 1GB RAM / Radeon 9250 / AmigaOS 4.1 Final Edition
   Report Go to top





[Advanced Search]


Powered by XOOPS 2.0 © 2001-2016 The XOOPS Project