⚝
One Hat Cyber Team
⚝
Your IP:
216.73.216.144
Server IP:
157.245.143.252
Server:
Linux www 6.11.0-9-generic #9-Ubuntu SMP PREEMPT_DYNAMIC Mon Oct 14 13:19:59 UTC 2024 x86_64
Server Software:
nginx/1.26.0
PHP Version:
8.3.11
Buat File
|
Buat Folder
Eksekusi
Dir :
~
/
lib
/
python3.12
/
xml
/
sax
/
__pycache__
/
View File Name :
handler.cpython-312.pyc
CRh= d Z dZ G d d Z G d d Z G d d Z G d d Zd ZdZdZd Z dZ dZeeee e egZdZ dZdZdZdZdZe eeeeegZ G d d Zy)a0 This module contains the core classes of version 2.0 of SAX for Python. This file provides only default classes with absolutely minimum functionality, from which drivers and applications can be subclassed. Many of these classes are empty and are included only as documentation of the interfaces. $Id$ z2.0betac " e Zd ZdZd Zd Zd Zy)ErrorHandlera Basic interface for SAX error handlers. If you create an object that implements this interface, then register the object with your XMLReader, the parser will call the methods in your object to report all warnings and errors. There are three levels of errors available: warnings, (possibly) recoverable errors, and unrecoverable errors. All methods take a SAXParseException as the only parameter.c |)zHandle a recoverable error. self exceptions &/usr/lib/python3.12/xml/sax/handler.pyerrorzErrorHandler.error c |)zHandle a non-recoverable error.r r s r fatalErrorzErrorHandler.fatalError$ r r c t | y)zHandle a warning.N)printr s r warningzErrorHandler.warning( s ir N)__name__ __module____qualname____doc__r r r r r r r r s 0r r c d e Zd ZdZd Zd Zd Zd Zd Zd Z d Z d Zd Zd Z d Zd Zd Zd Zy)ContentHandlerzInterface for receiving logical document content events. This is the main callback interface in SAX, and the one most important to applications. The order of events in this interface mirrors the order of the information in the document.c d | _ y )N_locatorr s r __init__zContentHandler.__init__6 s r c || _ y)a# Called by the parser to give the application a locator for locating the origin of document events. SAX parsers are strongly encouraged (though not absolutely required) to supply a locator: if it does so, it must supply the locator to the application by invoking this method before invoking any of the other methods in the DocumentHandler interface. The locator allows the application to determine the end position of any document-related event, even if the parser is not reporting an error. Typically, the application will use this information for reporting its own errors (such as character content that does not match an application's business rules). The information returned by the locator is probably not sufficient for use with a search engine. Note that the locator will return correct information only during the invocation of the events in this interface. The application should not attempt to use it at any other time.Nr )r locators r setDocumentLocatorz!ContentHandler.setDocumentLocator9 s * r c y)zReceive notification of the beginning of a document. The SAX parser will invoke this method only once, before any other methods in this interface or in DTDHandler (except for setDocumentLocator).Nr r s r startDocumentzContentHandler.startDocumentP r c y)aQ Receive notification of the end of a document. The SAX parser will invoke this method only once, and it will be the last method invoked during the parse. The parser shall not invoke this method until it has either abandoned parsing (because of an unrecoverable error) or reached the end of input.Nr r s r endDocumentzContentHandler.endDocumentW r" r c y)a Begin the scope of a prefix-URI Namespace mapping. The information from this event is not necessary for normal Namespace processing: the SAX XML reader will automatically replace prefixes for element and attribute names when the http://xml.org/sax/features/namespaces feature is true (the default). There are cases, however, when applications need to use prefixes in character data or in attribute values, where they cannot safely be expanded automatically; the start/endPrefixMapping event supplies the information to the application to expand prefixes in those contexts itself, if necessary. Note that start/endPrefixMapping events are not guaranteed to be properly nested relative to each-other: all startPrefixMapping events will occur before the corresponding startElement event, and all endPrefixMapping events will occur after the corresponding endElement event, but their order is not guaranteed.Nr )r prefixuris r startPrefixMappingz!ContentHandler.startPrefixMapping` r" r c y)zEnd the scope of a prefix-URI mapping. See startPrefixMapping for details. This event will always occur after the corresponding endElement event, but the order of endPrefixMapping events is not otherwise guaranteed.Nr )r r&