[Expat-discuss] DTD validation

Karl Waclawek karl at waclawek.net
Tue Jun 24 15:59:53 EDT 2003


> So how does one parse a DTD? I see to call XML_SetParamEntityParsing. Are
> there API's to help expand the entities or do you have to just roll your
> own with start/end element handler? Is there a simple example of parsing
> DTD's (like outline.c ?)

There is a range of callbacks you can register with Expat.
They cover practically everything in the DTD.

Expat silently expands internal entities, and you need to set a handler
to parse external entities. Details in reference.html.
You should also check the example applications, like xmlwf.

Karl



More information about the Expat-discuss mailing list