Name
The DTDHandler Interface
Synopsis
After passing an instance of the DTDHandler
interface to the setDTDHandler( )
method of XMLReader
, the program will receive
notification of notation and unparsed entity declarations in the
DTD. You can store this information and use it later to retrieve
information about the unparsed entities you encounter while
reading the document:
package org.xml.sax; public interfaceDTDHandler
{ public voidnotationDecl
(Stringname
, StringpublicID
, StringsystemID
) throws SAXException; public voidunparsedEntityDecl
(Stringname
, StringpublicID
, StringsystemID
, StringnotationName
) throws SAXException; }
Get XML in a Nutshell, 3rd Edition now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.