473,324 Members | 2,581 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,324 software developers and data experts.

Good C++ XML library

Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...
Jun 1 '06 #1
7 4162
Jens Müller escribió:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


If you decide to try a C library you could try
libxml2(http://www.xmlsoft.org/), wich haves lots of examples and its
pretty easy to use. I use it with my C++ projects.

- Eduardo Grajeda
Jun 1 '06 #2
On Thu, 01 Jun 2006 18:36:33 +0200, =?ISO-8859-15?Q?Jens_M=FCller?=
<us************@tessarakt.de> wrote:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...
I didn't find the Xerces documentation that helpful ...


TinyXml? http://www.grinninglizard.com/tinyxml/

Best wishes,
Roland Pibinger
Jun 1 '06 #3
Eduardo Grajeda wrote:
Jens Müller escribió:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


If you decide to try a C library you could try
libxml2(http://www.xmlsoft.org/), wich haves lots of examples and its
pretty easy to use. I use it with my C++ projects.


Or if you prefer C++, simply use its C++ binding, libxml++.

Jun 1 '06 #4
Rolf Magnus wrote:
Eduardo Grajeda wrote:

Jens Müller escribió:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


If you decide to try a C library you could try
libxml2(http://www.xmlsoft.org/), wich haves lots of examples and its
pretty easy to use. I use it with my C++ projects.

Or if you prefer C++, simply use its C++ binding, libxml++.


One problem I found with libxml2++ (and libxml2) is the number of
dependencies it needs. I gave up trying to get it installed on a Redhat
8 machine and used TinyXML instead.

Joe
Jun 1 '06 #5

Jens Müller wrote:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


I am an expat fan http://expat.sf.net

Jun 2 '06 #6
dj
Jens Müller wrote:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


I used TinyXml in my last project as well.
Jun 2 '06 #7
In article <e5*************@news.t-online.com>,
Rolf Magnus <ra******@t-online.de> wrote:
Eduardo Grajeda wrote:
Jens Müller escribió:
Can anyone recommend me a good XML library? Should be relatively easy to
use, and especially a good tutorial/handbook would be nice ...

I didn't find the Xerces documentation that helpful ...


If you decide to try a C library you could try
libxml2(http://www.xmlsoft.org/), wich haves lots of examples and its
pretty easy to use. I use it with my C++ projects.


Or if you prefer C++, simply use its C++ binding, libxml++.

I would certainly recommend using libxml++ above libxml2 directly.

Although libxml2 has very extensive capability, the memory management
in it is a a total nightmare. If you use it directly, forget about
good RAII practices. Various functions can return a pointer to memory
owned by another object that you shouldn't touch or memory that has
been allocated by this function and that you are responsible to free.
Freeing this memory is done via a function call but which function
call depend on what function allocated the object (xmlFree,
xmlFreeDoc, xsltFreeStylesheet, xmlXPathFreeObject, etc. etc). And
sometimes, the content of the allocated object contains pointers to
memory owned by another object. And don't forget to initialise your
library and clean up afterward with xmlCleanupParser(). Etc. etc.

To its credit, it works. So it might be worth using and is most
probably better than implementing your own xml parser from scratch. I
would just have liked it to use better (and more consistent) ownership
patterns.
Yan
Jun 2 '06 #8

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

226
by: Stephen C. Waterbury | last post by:
This seems like it ought to work, according to the description of reduce(), but it doesn't. Is this a bug, or am I missing something? Python 2.3.2 (#1, Oct 20 2003, 01:04:35) on linux2 Type...
27
by: Matt Kruse | last post by:
Since this topic has come up several times in other threads, I thought I'd make a separate thread and gather opinions from (hopefully) a more varied range of newsgroup participants. What are...
2
by: Ramesh | last post by:
hi, I like to use COM in my application. I would like to know the following information. 1. How to create COM in C#.Net Web ( i know litter bit). 2. How to change assembly info to use this COM....
3
by: Andreas Hildebrandt | last post by:
Hi all, we are trying to port a fairly large c++ library to windows using Visual Studio.net 2003, and are running into some unexpected problems with the stream handling. Since our development is...
2
by: OHM | last post by:
Windows Forms Controls. Has anyone personally read and recommends a good book which includes good coverage on DataGrids as this seems to be one of the most common problem areas. Regards - OHM
3
by: BG Mahesh | last post by:
hi We are looking for a good Ajax library which has very good support for iframe. The ones we have considered so far are, Backbase.com - not happy with the speed Zapatech.com - it is good but...
206
by: WaterWalk | last post by:
I've just read an article "Building Robust System" by Gerald Jay Sussman. The article is here: http://swiss.csail.mit.edu/classes/symbolic/spring07/readings/robust-systems.pdf In it there is a...
244
by: Ajinkya | last post by:
Can anyone suggest me a good compiler for(c/cpp) for windows? I tried dev cpp but its debugging facility is very poor.
159
by: bernard | last post by:
howdy! please recommend a good c compiler. - should be small - should be fast - should come with a good ide - should be inexpensive i am using windows os.
0
by: ryjfgjl | last post by:
ExcelToDatabase: batch import excel into database automatically...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
0
by: jfyes | last post by:
As a hardware engineer, after seeing that CEIWEI recently released a new tool for Modbus RTU Over TCP/UDP filtering and monitoring, I actively went to its official website to take a look. It turned...
0
by: ArrayDB | last post by:
The error message I've encountered is; ERROR:root:Error generating model response: exception: access violation writing 0x0000000000005140, which seems to be indicative of an access violation...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
1
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.