Receives notification of basic DTD-related events.

Introduced classes

abstract class DTDHandler

sax :: DTDHandler

Receives notification of basic DTD-related events.

All class definitions

abstract class DTDHandler

sax $ DTDHandler

Receives notification of basic DTD-related events.
package_diagram sax::dtd_handler dtd_handler core core sax::dtd_handler->core sax::xml_reader xml_reader sax::xml_reader->sax::dtd_handler sax::xml_filter xml_filter sax::xml_filter->sax::xml_reader sax::xml_filter... ... sax::xml_filter...->sax::xml_filter

Ancestors

module abstract_collection

core :: abstract_collection

Abstract collection classes and services.
module abstract_text

core :: abstract_text

Abstract class for manipulation of sequences of characters
module array

core :: array

This module introduces the standard array structure.
module bitset

core :: bitset

Services to handle BitSet
module bytes

core :: bytes

Services for byte streams and arrays
module circular_array

core :: circular_array

Efficient data structure to access both end of the sequence.
module codec_base

core :: codec_base

Base for codecs to use with streams
module codecs

core :: codecs

Group module for all codec-related manipulations
module collection

core :: collection

This module define several collection classes.
module environ

core :: environ

Access to the environment variables of the process
module error

core :: error

Standard error-management infrastructure.
module exec

core :: exec

Invocation and management of operating system sub-processes.
module file

core :: file

File manipulations (create, read, write, etc.)
module fixed_ints

core :: fixed_ints

Basic integers of fixed-precision
module fixed_ints_text

core :: fixed_ints_text

Text services to complement fixed_ints
module flat

core :: flat

All the array-based text representations
module gc

core :: gc

Access to the Nit internal garbage collection mechanism
module hash_collection

core :: hash_collection

Introduce HashMap and HashSet.
module iso8859_1

core :: iso8859_1

Codec for ISO8859-1 I/O
module kernel

core :: kernel

Most basic classes and methods.
module list

core :: list

This module handle double linked lists
module math

core :: math

Mathematical operations
module native

core :: native

Native structures for text and bytes
module numeric

core :: numeric

Advanced services for Numeric types
module protocol

core :: protocol

module queue

core :: queue

Queuing data structures and wrappers
module range

core :: range

Module for range of discrete objects.
module re

core :: re

Regular expression support for all services based on Pattern
module ropes

core :: ropes

Tree-based representation of a String.
module sorter

core :: sorter

This module contains classes used to compare things and sorts arrays.
module stream

core :: stream

Input and output streams of characters
module text

core :: text

All the classes and methods related to the manipulation of text entities
module time

core :: time

Management of time and dates
module union_find

core :: union_find

union–find algorithm using an efficient disjoint-set data structure
module utf8

core :: utf8

Codec for UTF-8 I/O

Parents

module core

core :: core

Standard classes and methods used by default by Nit programs and libraries.

Children

module xml_reader

sax :: xml_reader

Interface for reading an XML document using callbacks.

Descendants

module a_star-m

a_star-m

module ext

sax :: ext

Interfaces to optional SAX2 handlers.
module helpers

sax :: helpers

Contains "helper" classes, including support for bootstrapping SAX-based applications.
module lexer

saxophonit :: lexer

SAXophoNit’s lexer
module reader_model

saxophonit :: reader_model

Reader’s model.
module sax

sax :: sax

Core SAX APIs.
module saxophonit

saxophonit :: saxophonit

A SAX 2 parser in Nit.
module testing

saxophonit :: testing

Various utilities to help testing SAXophoNit (and SAX parsers in general).
module xml_filter

sax :: xml_filter

Interface for an XML filter.
module xml_filter_impl

sax :: xml_filter_impl

Base class for deriving an XML filter.
# Receives notification of basic DTD-related events.
module sax::dtd_handler

# Receives notification of basic DTD-related events.
#
# If a SAX application needs information about notations and
# unparsed entities, then the application implements this
# interface and registers an instance with the SAX parser using
# the parser's `dtd_handler` property. The parser uses the
# instance to report notation and unparsed entity declarations to
# the application.
#
# Note that this interface includes only those DTD events that
# the XML recommendation *requires* processors to report:
# notation and unparsed entity declarations.
#
# The SAX parser may report these events in any order, regardless
# of the order in which the notations and unparsed entities were
# declared; however, all DTD events must be reported after the
# document handler's `start_document` event, and before the first
# `start_element` event.
# (If the `sax::ext::LexicalHandler` is
# used, these events must also be reported before the `end_dtd` event.)
#
# It is up to the application to store the information for
# future use (perhaps in a hash table or object tree).
# If the application encounters attributes of type `NOTATION`,
# `ENTITY`, or `ENTITIES`, it can use the information that it
# obtained through this interface to find the entity and/or
# notation corresponding with the attribute value.
#
# Note: The original documentation comes from [SAX 2.0](http://www.saxproject.org).
#
# SEE: `sax::XMLReader.dtd_handler`
abstract class DTDHandler

	# Receive notification of a notation declaration event.
	#
	# It is up to the application to record the notation for later
	# reference, if necessary;
	# notations may appear as attribute values and in unparsed entity
	# declarations, and are sometime used with processing instruction
	# target names.
	#
	# At least one of `public_id` and `system_id` must be non-null.
	# If a system identifier is present, and it is a URL, the SAX
	# parser must resolve it fully before passing it to the
	# application through this event.
	#
	# There is no guarantee that the notation declaration will be
	# reported before any unparsed entities that use it.
	#
	# Parameters:
	#
	# * `name`: notation name.
	# * `public_id`: notation's public identifier, or null if none was given.
	# * `system_id`: notation's system identifier, or null if none was given.
	#
	# SEE: `sax::Attributes`
	fun notation_decl(name: String, public_id: String, system_id: String) do end

	# Receive notification of an unparsed entity declaration event.
	#
	# Note that the notation name corresponds to a notation
	# reported by the `notation_decl` event.
	# It is up to the application to record the entity for later
	# reference, if necessary;
	# unparsed entities may appear as attribute values.
	#
	# If the system identifier is a URL, the parser must resolve it
	# fully before passing it to the application.
	#
	# Parameters:
	#
	# * `name`: unparsed entity's name.
	# * `public_id`: entity's public identifier, or null if none was given.
	# * `system_id`: entity's system identifier, or null if none was given.
	#
	# SEE: `sax::Attributes`
	fun unparsed_entity_decl(name: String, public_id: String,
			system_id: String) do end
end
lib/sax/dtd_handler.nit:11,1--92,3