470,849 Members | 1,132 Online
Bytes | Developer Community
New Post

Home Posts Topics Members FAQ

Post your question to a community of 470,849 developers. It's quick & easy.

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
6 1074
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
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.


What external dependencies are the problem with Expat?

Karl

Mar 7 '06 #7

This discussion thread is closed

Replies have been disabled for this discussion.

Similar topics

17 posts views Thread by Doug Fort | last post: by
3 posts views Thread by Mario | last post: by
169 posts views Thread by JohnQ | last post: by
399 posts views Thread by =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post: by
By using this site, you agree to our Privacy Policy and Terms of Use.