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

R

rpseguin

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!
 
V

Vladimir S. Oka

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.
 
B

Ben Pope

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

Imre Palik

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
 
K

Karl Waclawek

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.

What external dependencies are the problem with Expat?

Karl
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,982
Messages
2,570,186
Members
46,739
Latest member
Clint8040

Latest Threads

Top