473,401 Members | 2,146 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,401 software developers and data experts.

Small, non-validating XML parser/walker/reader?

Ok.
I've looked at expat, libxml, ...
Too much baggage!

I would like to find a small XML walker/"parser"/reader that simply
gives me callbacks (C++ or C). No validation needed or wanted.
I would prefer some open sourced, portable thing (Linux, OS/X, Windows,
POSIX), with at most a couple of files and with no external
dependencies. Anything beyond that, and I'm going to write my own.
I'm trying to make a small tool with as few external dependencies as
possible.

One of my gripes about a lot of open source stuff these days (I must be
getting crochety :-) is the creep of dependencies. Oh, you want to use
A, well you also need to get B, C and D, but B also needs E and F, ...

Thanks!

Mar 6 '06 #1
5 2457
rp******@gmail.com wrote:
Ok.
I've looked at expat, libxml, ...
Too much baggage!

I would like to find a small XML walker/"parser"/reader that simply


<snip off topic rant>

Your question is off-topic here (in c.l.c).

If it wasn't: GYIF.

--
BR, Vladimir

You can fool some of the people all of the time,
and all of the people some of the time,
but you can make a fool of yourself anytime.

Mar 6 '06 #2
On 6 Mar 2006 10:29:19 -0800, rp******@gmail.com wrote:
I would like to find a small XML walker/"parser"/reader that simply
gives me callbacks (C++ or C). No validation needed or wanted.


Don't know what you mean exactly (SAX-like or DOM-like?) but maybe
TinyXml ( http://www.grinninglizard.com/tinyxml/ ) is the right thing
for you.

Best wishes,
Roland Pibinger
Mar 6 '06 #3
rp******@gmail.com wrote:
Ok.
I've looked at expat, libxml, ...
Too much baggage!

I would like to find a small XML walker/"parser"/reader that simply
gives me callbacks (C++ or C). No validation needed or wanted.
I would prefer some open sourced, portable thing (Linux, OS/X, Windows,
POSIX), with at most a couple of files and with no external
dependencies. Anything beyond that, and I'm going to write my own.
I'm trying to make a small tool with as few external dependencies as
possible.


I've started using XiMoL, it's not event based, it's based around
streams. I've created a patch which makes it compile with VC8 (a bug in
VC8).

Ben Pope
--
I'm not just a number. To many, I'm known as a string...
Mar 6 '06 #4
rp******@gmail.com wrote:
Ok.
I've looked at expat, libxml, ...
Too much baggage!


Mini-XML:

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

--
__________________________________________________ ____________________
Michael Sweet, Easy Software Products mike at easysw dot com
Internet Printing and Publishing Software http://www.easysw.com
Mar 6 '06 #5
rp******@gmail.com writes:
Ok.
I've looked at expat, libxml, ...
Too much baggage!

I would like to find a small XML walker/"parser"/reader that simply
gives me callbacks (C++ or C). No validation needed or wanted.
I would prefer some open sourced, portable thing (Linux, OS/X, Windows,
POSIX), with at most a couple of files and with no external
dependencies. Anything beyond that, and I'm going to write my own.
I'm trying to make a small tool with as few external dependencies as
possible.


Here is a basic one:
http://sourceforge.net/projects/yaxp

It needs some POSIX libs, so I am not sure about its portability to
windows. I successfuly used it on Solaris (with Forte 6.2 and gcc), and on
Linux. If you need something that it doesn't know, then please let me know
about it.

ImRe
Mar 7 '06 #6

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

Similar topics

2
by: Dave Brueck | last post by:
Below is some information I collected from a *small* project in which I wrote a Python version of a Java application. I share this info only as a data point (rather than trying to say this data...
12
by: Simon Harvey | last post by:
Whato chaps, I work (or am hoping to work! :) for a company that specialises in the following: - Localisation of media - including software, manuals, literature and training material. -...
7
by: Randall Parker | last post by:
Using IE 6.x (whatever is the latest) on Windows 2000. For these two CSS definitions if I remove the 2 lines that have the "mso-" font family definitions (mso-fareast-font-family, and...
16
by: mamo74 | last post by:
Hello. I am administering a SQL Server (Enterprise Edition on Windows 2003) from some month and can't understand what is going on in the latest week (when the db grow a lot). The DB is around...
49
by: Lauren Wilson | last post by:
Hi folks, Just wondered if, for the sake of clarity, it is permissible to post small image files of an error box along with a text message about a problem with Access?
10
by: Tomás | last post by:
Let's say we have a function that returns the result of subtracting seven from a given number. Would you write it as: (A) int SubtractSeven( int const x ) { return x - 7; }
17
by: Student | last post by:
Hi All, I have an assignment for my Programming language project to create a compiler that takes a C++ file as input and translate it into the C file. Here I have to take care of inheritance and...
8
by: Mike S | last post by:
Hi all, I noticed a very slight logic error in the solution to K&R Exercise 1-22 on the the CLC-Wiki, located at http://www.clc-wiki.net/wiki/KR2_Exercise_1-22 The exercise reads as...
13
by: Alan Silver | last post by:
Hello, MSDN (amongst other places) is full of helpful advice on ways to do data access, but they all seem geared to wards enterprise applications. Maybe I'm in a minority, but I don't have those...
169
by: JohnQ | last post by:
(The "C++ Grammer" thread in comp.lang.c++.moderated prompted this post). It would be more than a little bit nice if C++ was much "cleaner" (less complex) so that it wasn't a major world wide...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
There are some requirements for setting up RAID: 1. The motherboard and BIOS support RAID configuration. 2. The motherboard has 2 or more available SATA protocol SSD/HDD slots (including MSATA, M.2...
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
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,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...
0
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.