473,396 Members | 1,590 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,396 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
6 1176
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 thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

6
by: JW | last post by:
I'm displaying product thumbnails with brief descriptions on web pages. Clicking on the product does a javascript popup with larger image and detailed description info passed to the javascript...
17
by: Doug Fort | last post by:
This is an excerpt from a much longer post on the python-dev mailing list. I'm responding here, to avoid cluttering up python-dev. <snip> >Some English readers might not really imagine, but it...
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. -...
0
by: obhayes | last post by:
Hi All, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
1
by: brad | last post by:
Hi, Im using classic ASP (3.0) and I have a web farm with 2 webservers (webserver A and webserver B, both windows server 2003). I do not want to store any client specific information on the...
3
by: Mario | last post by:
Hello, I couldn't find a solution to the following problem (tried google and dejanews), maybe I'm using the wrong keywords? Is there a way to open a file (a linux fifo pipe actually) in...
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...
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...
399
by: =?UTF-8?B?Ik1hcnRpbiB2LiBMw7Z3aXMi?= | last post by:
PEP 1 specifies that PEP authors need to collect feedback from the community. As the author of PEP 3131, I'd like to encourage comments to the PEP included below, either here (comp.lang.python), or...
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:
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...
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: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
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
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,...

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.