tags:

views:

414

answers:

2

I'm looking for an open-source SGML parser written in plain C. This is to parse bona-fide SGML, not malformed stuff.

Any ideas?

+1  A: 

This came up on a fast Google search (sgml c parser): http://www.w3.org/Library/src/SGML.html. Does that help?

Or perhaps this one: http://www.math.utah.edu/pub/sgml/sgmls/

warren
I was hoping for someone with direct experience but I suppose SGML isn't exactly that common anymore :-)Thanks, I think the first one sounds like the best bet.
Adam Ernst
+4  A: 

There's OpenSP, which is part of the OpenJade project, but is implemented in C++. Might be close enough for your needs?

Alastair
SGML is complicated stuff and there are few libraries. OpenSP is a good choice.
bortzmeyer