Next in thread → Next in month →

Re: [xml-dev] Sample expat code for reading entities?

From
Karl Waclawek <>
To
Tim Bray <>, XML Dev <>
Date
2003-06-10T19:59:28Z
ID
<006001c32f8a$cd6c3940$037ca8c0@karl>
Thread
Re: [xml-dev] Sample expat code for reading entities?
> I have an XML file which has a DTD (that I don't want to read) and 
> another external set of decls ref'ed from the internal subset, which 
> contains some entity declarations that I do need).  This is in C code. 
> I'm plowing through the expat docs and the write-up on things like 
> XML_SetExternalEntityHandler is giving me a headache.  I'm sure I can 
> figure it out, but are there some implementations out there to look at 
> and make this go quicker?

The expat distribution comes with the xmlwf tool (+ source code).
Have a look at xmlfile.c, specifically at function XML_ProcessFile
and the handlers that are set there.

Karl
Next in thread → Next in month →