[Expat-discuss] DTD validation
Fred L. Drake, Jr.
fdrake at acm.org
Tue Jun 24 15:54:58 EDT 2003
Chris Cross writes:
> 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 ?)
Once you parse the parameter entities, you can register additional
callbacks to pick up information on the structural declarations (see
doc/reference.html in the distribution) and then check the structure
in the element start/end handlers.
-Fred
--
Fred L. Drake, Jr. <fdrake at acm.org>
PythonLabs at Zope Corporation
More information about the Expat-discuss
mailing list