@@ -26,7 +26,8 @@ The convenience functions are:
2626
2727.. function :: make_parser(parser_list=[])
2828
29- Create and return a SAX :class: `XMLReader ` object. The first parser found will
29+ Create and return a SAX :class: `~xml.sax.xmlreader.XMLReader ` object. The
30+ first parser found will
3031 be used. If *parser_list * is provided, it must be a sequence of strings which
3132 name modules that have a function named :func: `create_parser `. Modules listed
3233 in *parser_list * will be used before modules in the default list of parsers.
@@ -36,8 +37,9 @@ The convenience functions are:
3637
3738 Create a SAX parser and use it to parse a document. The document, passed in as
3839 *filename_or_stream *, can be a filename or a file object. The *handler *
39- parameter needs to be a SAX :class: `ContentHandler ` instance. If
40- *error_handler * is given, it must be a SAX :class: `ErrorHandler ` instance; if
40+ parameter needs to be a SAX :class: `~handler.ContentHandler ` instance. If
41+ *error_handler * is given, it must be a SAX :class: `~handler.ErrorHandler `
42+ instance; if
4143 omitted, :exc: `SAXParseException ` will be raised on all errors. There is no
4244 return value; all work must be done by the *handler * passed in.
4345
@@ -62,10 +64,12 @@ For these objects, only the interfaces are relevant; they are normally not
6264instantiated by the application itself. Since Python does not have an explicit
6365notion of interface, they are formally introduced as classes, but applications
6466may use implementations which do not inherit from the provided classes. The
65- :class: `InputSource `, :class: `Locator `, :class: `Attributes `,
66- :class: `AttributesNS `, and :class: `XMLReader ` interfaces are defined in the
67+ :class: `~xml.sax.xmlreader.InputSource `, :class: `~xml.sax.xmlreader.Locator `,
68+ :class: `~xml.sax.xmlreader.Attributes `, :class: `~xml.sax.xmlreader.AttributesNS `,
69+ and :class: `~xml.sax.xmlreader.XMLReader ` interfaces are defined in the
6770module :mod: `xml.sax.xmlreader `. The handler interfaces are defined in
68- :mod: `xml.sax.handler `. For convenience, :class: `InputSource ` (which is often
71+ :mod: `xml.sax.handler `. For convenience,
72+ :class: `~xml.sax.xmlreader.InputSource ` (which is often
6973instantiated directly) and the handler classes are also available from
7074:mod: `xml.sax `. These interfaces are described below.
7175
@@ -78,7 +82,8 @@ classes.
7882 Encapsulate an XML error or warning. This class can contain basic error or
7983 warning information from either the XML parser or the application: it can be
8084 subclassed to provide additional functionality or to add localization. Note
81- that although the handlers defined in the :class: `ErrorHandler ` interface
85+ that although the handlers defined in the
86+ :class: `~xml.sax.handler.ErrorHandler ` interface
8287 receive instances of this exception, it is not required to actually raise the
8388 exception --- it is also useful as a container for information.
8489
@@ -91,22 +96,26 @@ classes.
9196
9297.. exception :: SAXParseException(msg, exception, locator)
9398
94- Subclass of :exc: `SAXException ` raised on parse errors. Instances of this class
95- are passed to the methods of the SAX :class: `ErrorHandler ` interface to provide
96- information about the parse error. This class supports the SAX :class: `Locator `
97- interface as well as the :class: `SAXException ` interface.
99+ Subclass of :exc: `SAXException ` raised on parse errors. Instances of this
100+ class are passed to the methods of the SAX
101+ :class: `~xml.sax.handler.ErrorHandler ` interface to provide information
102+ about the parse error. This class supports the SAX
103+ :class: `~xml.sax.xmlreader.Locator ` interface as well as the
104+ :class: `SAXException ` interface.
98105
99106
100107.. exception :: SAXNotRecognizedException(msg, exception=None)
101108
102- Subclass of :exc: `SAXException ` raised when a SAX :class: `XMLReader ` is
109+ Subclass of :exc: `SAXException ` raised when a SAX
110+ :class: `~xml.sax.xmlreader.XMLReader ` is
103111 confronted with an unrecognized feature or property. SAX applications and
104112 extensions may use this class for similar purposes.
105113
106114
107115.. exception :: SAXNotSupportedException(msg, exception=None)
108116
109- Subclass of :exc: `SAXException ` raised when a SAX :class: `XMLReader ` is asked to
117+ Subclass of :exc: `SAXException ` raised when a SAX
118+ :class: `~xml.sax.xmlreader.XMLReader ` is asked to
110119 enable a feature that is not supported, or to set a property to a value that the
111120 implementation does not support. SAX applications and extensions may use this
112121 class for similar purposes.
0 commit comments