473,387 Members | 1,812 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,387 software developers and data experts.

[Q] A simple C++ parser ?

Hi,

I'm assigned to a project where XML is heavily used in C++ (I came
from a Java background).

Do you know what is the most popular and simple free XML parser for
C++ ? I was browsing the web and there are lots of APIs, but it's hard
to know what is the most straightforward to use without having worked
with them.

Thanks in advance,

- Juan Medín
Jul 20 '05 #1
3 2583
Apache Xerces of course.
Free. Complete implementation of the W3C standard.
"Juan P. Carrillo" <Ju*******@hotmail.com> wrote in message
news:ef*************************@posting.google.co m...
Hi,

I'm assigned to a project where XML is heavily used in C++ (I came
from a Java background).

Do you know what is the most popular and simple free XML parser for
C++ ? I was browsing the web and there are lots of APIs, but it's hard
to know what is the most straightforward to use without having worked
with them.

Thanks in advance,

- Juan Medín

Jul 20 '05 #2
I agree.

There are others, but I find that's the best.
http://xml.apache.org/xerces-c/index.html

The only cases where it doesn't scale well is when your application
runs in environment with limited risources (memory, bandwith, etc)
like embedded, mobiles, applets that need to download the parser, etc.

In thouse cases, if you can live without some of the great features
offered by xerces like validation, then you're better off with
other solutions.

Let me know if you need some links about the latter.

Best regards.
Xuejun Li (SH/RDC) wrote:
Apache Xerces of course.
Free. Complete implementation of the W3C standard.

--
Roberto Nunnari -software engineer-
mailto:ro**@nunnisoft.ch
http://www.nunnisoft.ch
Residenza Boschetto 12 tel/fax: +41-91-6046511
6935 Bosco Luganese """ mobile: +41-76-3208561
Switzerland (o o)
========================oOO==(_)==OOo============= ===========

Jul 20 '05 #3
Juan P. Carrillo wrote:
Hi,

I'm assigned to a project where XML is heavily used in C++ (I came
from a Java background).

Do you know what is the most popular and simple free XML parser for
C++ ? I was browsing the web and there are lots of APIs, but it's hard
to know what is the most straightforward to use without having worked
with them.


If you don't need validation, you might want to look at my (free)
Mini-XML library:

http://www.easysw.com/~mike/mxml/

Right now it provides a C api (usable with C++).

--
__________________________________________________ ____________________
Michael Sweet, Easy Software Products mi**@easysw.com
Printing Software for UNIX http://www.easysw.com
Jul 20 '05 #4

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

Similar topics

3
by: Kenneth Downs | last post by:
Well, I'm coming to the end of a large and exhausting project, done in my new favorite language PHP, and its time for a diversion. I'm wondering if anyone has experience with writing simple...
13
by: Paulo Pinto | last post by:
Hi, does anyone know of a Python package that is able to load XML like the XML::Simple Perl package does? For those that don't know it, this package maps the XML file to a dictionary.
4
by: Leif K-Brooks | last post by:
I'm writing a site with mod_python which will have, among other things, forums. I want to allow users to use some HTML (<em>, <strong>, <p>, etc.) on the forums, but I don't want to allow bad...
8
by: Dan | last post by:
Using XML::Simple in perl is extreemly slow to parse big XML files (can be up to 250M, taking ~1h). How can I increase my performance / reduce my memory usage? Is SAX the way forward?
4
by: Greg B | last post by:
Well since getopt() doesn't seem to be compatible with Windows, and the free implementation of it for Windows that I found still had some annoying restrictions, I thought I'd whip up a simple...
1
by: steve smith | last post by:
Hi I have just downloaded the Borland C# Builder and the Micorsoft ..Net framework SDK v1.1 from the borland webist, and i am trying to get a simple program to run, however I keep getting errors,...
26
by: jacob navia | last post by:
Summary: I have changed (as proposed by Chuck) the code to use isalpha() instead of (c>='a' && c <= 'z') etc. I agree that EBCDIC exists :-) I eliminated the goto statement, obviously it is...
4
by: =?Utf-8?B?SmFu?= | last post by:
In my application the user can configure automation-scripts by inserting different "actions" into a "procedure". These different procedure- and action-objects are all translated into C# code before...
11
by: Stef Mientki | last post by:
hello, I need to translate the following string a = '(0, 0, 0, 255), (192, 192, 192, 255), True, 8' into the following list or tuple b = Is there a simple way to to this. (Not needed...
7
by: bvdp | last post by:
Is there a simple/safe expression evaluator I can use in a python program. I just want to pass along a string in the form "1 + 44 / 3" or perhaps "1 + (-4.3*5)" and get a numeric result. I can...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

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.