[gdome] Parsing HTML documents?



Hello.

I have been looking for a C library that provides a DOM interface to
parsed HTML documents, however I have been struggling to make it work
the way that I'd like (probably because I'm trying to use it
incorrectly, no doubt!).

Firstly, can gdome be used to parse HTML documents? I am aware that
its more geared towards XML, which, although similar, has obvious
differences!

In any case, I'm using one of the examples as a start, however I'm
getting this error while calling parse():

parser error : StartTag: invalid element name
<!doctype html><head><title>

I guess the main question I have, is am I using the right tool? Or
should I be using something more suited to HTML? If so, would any body
have any recomendations? I need to be able to modify various
components of the DOM, and it needs to be written in C (or C++, but
preferably C).

Many thanks
--
Bradley Kite


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]