Changeset 391 for python/trunk/Doc/library/xml.sax.handler.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.handler.rst
r2 r391 53 53 .. data:: feature_namespaces 54 54 55 Value: ``"http://xml.org/sax/features/namespaces"`` --- true: Perform Namespace 56 processing. --- false: Optionally do not perform Namespace processing (implies 57 namespace-prefixes; default). --- access: (parsing) read-only; (not parsing) 58 read/write 55 | value: ``"http://xml.org/sax/features/namespaces"`` 56 | true: Perform Namespace processing. 57 | false: Optionally do not perform Namespace processing (implies 58 namespace-prefixes; default). 59 | access: (parsing) read-only; (not parsing) read/write 59 60 60 61 61 62 .. data:: feature_namespace_prefixes 62 63 63 Value: ``"http://xml.org/sax/features/namespace-prefixes"`` --- true: Report 64 the original prefixed names and attributes used for Namespace 65 declarations. --- false: Do not report attributes used for Namespace 66 declarations, and optionally do not report original prefixed names 67 (default). --- access: (parsing) read-only; (not parsing) read/write 64 | value: ``"http://xml.org/sax/features/namespace-prefixes"`` 65 | true: Report the original prefixed names and attributes used for Namespace 66 declarations. 67 | false: Do not report attributes used for Namespace declarations, and 68 optionally do not report original prefixed names (default). 69 | access: (parsing) read-only; (not parsing) read/write 68 70 69 71 70 72 .. data:: feature_string_interning 71 73 72 Value: ``"http://xml.org/sax/features/string-interning"`` --- true: All element73 names, prefixes, attribute names, Namespace URIs, and local names are interned74 using the built-in intern function. --- false: Names are not necessarily75 interned, although they may be (default). --- access: (parsing) read-only; (not76 parsing) read/write74 | value: ``"http://xml.org/sax/features/string-interning"`` 75 | true: All element names, prefixes, attribute names, Namespace URIs, and 76 local names are interned using the built-in intern function. 77 | false: Names are not necessarily interned, although they may be (default). 78 | access: (parsing) read-only; (not parsing) read/write 77 79 78 80 79 81 .. data:: feature_validation 80 82 81 Value: ``"http://xml.org/sax/features/validation"`` --- true: Report all 82 validation errors (implies external-general-entities and 83 external-parameter-entities). --- false: Do not report validation errors. --- 84 access: (parsing) read-only; (not parsing) read/write 83 | value: ``"http://xml.org/sax/features/validation"`` 84 | true: Report all validation errors (implies external-general-entities and 85 external-parameter-entities). 86 | false: Do not report validation errors. 87 | access: (parsing) read-only; (not parsing) read/write 85 88 86 89 87 90 .. data:: feature_external_ges 88 91 89 Value: ``"http://xml.org/sax/features/external-general-entities"`` --- true:90 Include all external general (text) entities. --- false: Do not include91 external general entities. --- access: (parsing) read-only; (not parsing)92 read/write92 | value: ``"http://xml.org/sax/features/external-general-entities"`` 93 | true: Include all external general (text) entities. 94 | false: Do not include external general entities. 95 | access: (parsing) read-only; (not parsing) read/write 93 96 94 97 95 98 .. data:: feature_external_pes 96 99 97 Value: ``"http://xml.org/sax/features/external-parameter-entities"`` --- true: 98 Include all external parameter entities, including the external DTD subset. --- 99 false: Do not include any external parameter entities, even the external DTD 100 subset. --- access: (parsing) read-only; (not parsing) read/write 100 | value: ``"http://xml.org/sax/features/external-parameter-entities"`` 101 | true: Include all external parameter entities, including the external DTD 102 subset. 103 | false: Do not include any external parameter entities, even the external 104 DTD subset. 105 | access: (parsing) read-only; (not parsing) read/write 101 106 102 107 … … 108 113 .. data:: property_lexical_handler 109 114 110 Value: ``"http://xml.org/sax/properties/lexical-handler"`` --- data type: 111 xml.sax.sax2lib.LexicalHandler (not supported in Python 2) --- description: An 112 optional extension handler for lexical events like comments. --- access: 113 read/write 115 | value: ``"http://xml.org/sax/properties/lexical-handler"`` 116 | data type: xml.sax.sax2lib.LexicalHandler (not supported in Python 2) 117 | description: An optional extension handler for lexical events like 118 comments. 119 | access: read/write 114 120 115 121 116 122 .. data:: property_declaration_handler 117 123 118 Value: ``"http://xml.org/sax/properties/declaration-handler"`` --- data type: 119 xml.sax.sax2lib.DeclHandler (not supported in Python 2) --- description: An 120 optional extension handler for DTD-related events other than notations and 121 unparsed entities. --- access: read/write 124 | value: ``"http://xml.org/sax/properties/declaration-handler"`` 125 | data type: xml.sax.sax2lib.DeclHandler (not supported in Python 2) 126 | description: An optional extension handler for DTD-related events other 127 than notations and unparsed entities. 128 | access: read/write 122 129 123 130 124 131 .. data:: property_dom_node 125 132 126 Value: ``"http://xml.org/sax/properties/dom-node"`` --- data type:127 org.w3c.dom.Node (not supported in Python 2) --- description: When parsing,128 the current DOM node being visited if this is a DOM iterator; when not parsing,129 the root DOM node for iteration. --- access: (parsing) read-only; (not parsing)130 read/write133 | value: ``"http://xml.org/sax/properties/dom-node"`` 134 | data type: org.w3c.dom.Node (not supported in Python 2) 135 | description: When parsing, the current DOM node being visited if this is 136 a DOM iterator; when not parsing, the root DOM node for iteration. 137 | access: (parsing) read-only; (not parsing) read/write 131 138 132 139 133 140 .. data:: property_xml_string 134 141 135 Value: ``"http://xml.org/sax/properties/xml-string"`` --- data type: String --- 136 description: The literal string of characters that was the source for the 137 current event. --- access: read-only 142 | value: ``"http://xml.org/sax/properties/xml-string"`` 143 | data type: String 144 | description: The literal string of characters that was the source for the 145 current event. 146 | access: read-only 138 147 139 148 … … 232 241 233 242 The *name* parameter contains the raw XML 1.0 name of the element type as a 234 string and the *attrs* parameter holds an object of the :class:`Attributes` 243 string and the *attrs* parameter holds an object of the 244 :class:`~xml.sax.xmlreader.Attributes` 235 245 interface (see :ref:`attributes-objects`) containing the attributes of 236 246 the element. The object passed as *attrs* may be re-used by the parser; holding … … 255 265 localname)`` tuple, the *qname* parameter contains the raw XML 1.0 name used in 256 266 the source document, and the *attrs* parameter holds an instance of the 257 :class:`AttributesNS` interface (see :ref:`attributes-ns-objects`) 267 :class:`~xml.sax.xmlreader.AttributesNS` interface (see 268 :ref:`attributes-ns-objects`) 258 269 containing the attributes of the element. If no namespace is associated with 259 270 the element, the *uri* component of *name* will be ``None``. The object passed … … 371 382 372 383 Objects with this interface are used to receive error and warning information 373 from the :class:`XMLReader`. If you create an object that implements this 374 interface, then register the object with your :class:`XMLReader`, the parser 384 from the :class:`~xml.sax.xmlreader.XMLReader`. If you create an object that 385 implements this interface, then register the object with your 386 :class:`~xml.sax.xmlreader.XMLReader`, the parser 375 387 will call the methods in your object to report all warnings and errors. There 376 388 are three levels of errors available: warnings, (possibly) recoverable errors,
Note:
See TracChangeset
for help on using the changeset viewer.