# coding: utf-8 # AUTO-GENERATED FILE -- DO NOT EDIT """ Python wrapper for Expat parser. """ EXPAT_VERSION = 'expat_2.1.0' def ErrorString(code): """ Returns string error for given number. """ pass class ExpatError(Exception): pass def ParserCreate(encoding=None, namespace_separator=None, intern=None): """ Return a new XML parser object. """ pass class XMLParserType(object): """ XML parser """ def ExternalEntityParserCreate(self, context, encoding=None): """ Create a parser for parsing an external entity based on the information passed to the ExternalEntityRefHandler. """ pass def GetBase(self): """ Return base URL string for the parser. """ pass def GetInputContext(self): """ Return the untranslated text of the input that caused the current event. If the event was generated by a large amount of text (such as a start tag for an element with many attributes), not all of the text may be available. """ pass def Parse(self, data, isfinal=False): """ Parse XML data. `isfinal' should be true at end of input. """ pass def ParseFile(self, file): """ Parse XML data from file-like object. """ pass def SetBase(self, base): """ Set the base URL for the parser. """ pass def SetParamEntityParsing(self, flag): """ Controls parsing of parameter entities (including the external DTD subset). Possible flag values are XML_PARAM_ENTITY_PARSING_NEVER, XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE and XML_PARAM_ENTITY_PARSING_ALWAYS. Returns true if setting the flag was successful. """ pass def UseForeignDTD(self, flag=True): """ Allows the application to provide an artificial external subset if one is not specified as part of the document instance. This readily allows the use of a 'default' document type controlled by the application, while still getting the advantage of providing document type information to the parser. 'flag' defaults to True if not provided. """ pass XML_PARAM_ENTITY_PARSING_ALWAYS = 2 XML_PARAM_ENTITY_PARSING_NEVER = 0 XML_PARAM_ENTITY_PARSING_UNLESS_STANDALONE = 1 __doc__ = 'Python wrapper for Expat parser.' __file__ = 'C:\\src\\ide\\build-files\\build-temp\\runtimes-release\\__os__\\win32\\runtime-python3.5\\DLLs\\pyexpat.pyd' __loader__ = None __name__ = 'pyexpat' __package__ = '' __spec__ = None error = ExpatError errors = None expat_CAPI = None features = [] model = None native_encoding = 'UTF-8' version_info = ()