Changeset 391 for python/trunk/Doc/library/xml.sax.reader.rst
- Timestamp:
- Mar 19, 2014, 11:31:01 PM (11 years ago)
- Location:
- python/trunk
- Files:
-
- 2 edited
Legend:
- Unmodified
- Added
- Removed
-
python/trunk
-
Property svn:mergeinfo
set to
/python/vendor/Python-2.7.6 merged eligible /python/vendor/current merged eligible
-
Property svn:mergeinfo
set to
-
python/trunk/Doc/library/xml.sax.reader.rst
r2 r391 110 110 .. method:: XMLReader.getContentHandler() 111 111 112 Return the current :class:` ContentHandler`.112 Return the current :class:`~xml.sax.handler.ContentHandler`. 113 113 114 114 115 115 .. method:: XMLReader.setContentHandler(handler) 116 116 117 Set the current :class:`ContentHandler`. If no :class:`ContentHandler` is set, 118 content events will be discarded. 117 Set the current :class:`~xml.sax.handler.ContentHandler`. If no 118 :class:`~xml.sax.handler.ContentHandler` is set, content events will be 119 discarded. 119 120 120 121 121 122 .. method:: XMLReader.getDTDHandler() 122 123 123 Return the current :class:` DTDHandler`.124 Return the current :class:`~xml.sax.handler.DTDHandler`. 124 125 125 126 126 127 .. method:: XMLReader.setDTDHandler(handler) 127 128 128 Set the current :class:`DTDHandler`. If no :class:`DTDHandler` is set, DTD 129 Set the current :class:`~xml.sax.handler.DTDHandler`. If no 130 :class:`~xml.sax.handler.DTDHandler` is set, DTD 129 131 events will be discarded. 130 132 … … 132 134 .. method:: XMLReader.getEntityResolver() 133 135 134 Return the current :class:` EntityResolver`.136 Return the current :class:`~xml.sax.handler.EntityResolver`. 135 137 136 138 137 139 .. method:: XMLReader.setEntityResolver(handler) 138 140 139 Set the current :class:`EntityResolver`. If no :class:`EntityResolver` is set, 141 Set the current :class:`~xml.sax.handler.EntityResolver`. If no 142 :class:`~xml.sax.handler.EntityResolver` is set, 140 143 attempts to resolve an external entity will result in opening the system 141 144 identifier for the entity, and fail if it is not available. … … 144 147 .. method:: XMLReader.getErrorHandler() 145 148 146 Return the current :class:` ErrorHandler`.149 Return the current :class:`~xml.sax.handler.ErrorHandler`. 147 150 148 151 149 152 .. method:: XMLReader.setErrorHandler(handler) 150 153 151 Set the current error handler. If no :class:` ErrorHandler` is set, errors will152 be raised as exceptions, and warnings will be printed.154 Set the current error handler. If no :class:`~xml.sax.handler.ErrorHandler` 155 is set, errors will be raised as exceptions, and warnings will be printed. 153 156 154 157 … … 158 161 159 162 SAX parsers are not required to provide localization for errors and warnings; if 160 they cannot support the requested locale, however, they must throwa SAX163 they cannot support the requested locale, however, they must raise a SAX 161 164 exception. Applications may request a locale change in the middle of a parse. 162 165 … … 327 330 328 331 :class:`Attributes` objects implement a portion of the mapping protocol, 329 including the methods :meth:`copy`, :meth:`get`, :meth:`has_key`, :meth:`items`, 330 :meth:`keys`, and :meth:`values`. The following methods are also provided: 332 including the methods :meth:`~collections.Mapping.copy`, 333 :meth:`~collections.Mapping.get`, 334 :meth:`~collections.Mapping.has_key`, 335 :meth:`~collections.Mapping.items`, 336 :meth:`~collections.Mapping.keys`, 337 and :meth:`~collections.Mapping.values`. The following methods 338 are also provided: 331 339 332 340
Note:
See TracChangeset
for help on using the changeset viewer.