G Hasse wrote:
| Hello,
|
| To place an XML document in a GtkTree must be a fairly common
| stuff to do. Can anyone point me to some examples or code I would
| be happy.
|
Basically you use something like an XML_Parser (from
http://www.libexpat.org/), you're
distro may have the "expat" package, well, you'll need expat-devel,
and #include <expat.h>)
XML_Parser is setup with callback routines that are passed the xml
tag, and associated data.
The XML_Parser object is then used to parse the xml blob, and it will
call callback
routines at each xml level.
The callback routine then decides what to do with the tag (and
associated date). It might,
for example, create a new row in the GtkTree, or it might create a new
node, or it might
ignore the data altogether.
| Greg Hosler ghosler redhat com |