[xml] SAX-like parsing of DTDs

Good day.

Does libxml2 expose an API for performing basic parsing of a DTD -
specifically providing the ability to sense when an attribute declaration
appears in the input stream?  I am looking for the DTD-equivalent of
SAX-based parsing of an XML stream.  My goal is to assemble the logical
equivalent of a simple table with entries such as

elementName attiributeName1 attributeName2 ... attributeNameN

where the attributeName_i are ordered in the order in which they are
declared in the DTD.

Thank you.

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