<s> """<STR_LIT>""" <EOL> class Node : <EOL> """<STR_LIT>""" <EOL> ELEMENT_NODE = <NUM_LIT:1> <EOL> ATTRIBUTE_NODE = <NUM_LIT:2> <EOL> TEXT_NODE = <NUM_LIT:3> <EOL> CDATA_SECTION_NODE = <NUM_LIT:4> <EOL> ENTITY_REFERENCE_NODE = <NUM_LIT:5> <EOL> ENTITY_NODE = <NUM_LIT:6> <EOL> PROCESSING_INSTRUCTION_NODE = <NUM_LIT:7> <EOL> COMMENT_NODE = <NUM_LIT:8> <EOL> DOCUMENT_NODE = <NUM_LIT:9> <EOL> DOCUMENT_TYPE_NODE = <NUM_LIT:10> <EOL> DOCUMENT_FRAGMENT_NODE = <NUM_LIT:11> <EOL> NOTATION_NODE = <NUM_LIT:12> <EOL> TREE_POSITION_PRECEDING = <NUM_LIT> <EOL> TREE_POSITION_FOLLOWING = <NUM_LIT> <EOL> TREE_POSITION_ANCESTOR = <NUM_LIT> <EOL> TREE_POSITION_DESCENDENT = <NUM_LIT> <EOL> TREE_POSITION_EQUIVALENT = <NUM_LIT> <EOL> TREE_POSITION_SAME_NODE = <NUM_LIT> <EOL> TREE_POSITION_DISCONNECTED = <NUM_LIT> <EOL> class UserDataHandler : <EOL> """<STR_LIT>""" <EOL> NODE_CLONED = <NUM_LIT:1> <EOL> NODE_IMPORTED = <NUM_LIT:2> <EOL> NODE_DELETED = <NUM_LIT:3> <EOL> NODE_RENAMED = <NUM_LIT:4> <EOL> class DOMError : <EOL> """<STR_LIT>""" <EOL> SEVERITY_WARNING = <NUM_LIT:0> <EOL> SEVERITY_ERROR = <NUM_LIT:1> <EOL> SEVERITY_FATAL_ERROR = <NUM_LIT:2> <EOL> INDEX_SIZE_ERR = <NUM_LIT:1> <EOL> DOMSTRING_SIZE_ERR = <NUM_LIT:2> <EOL> HIERARCHY_REQUEST_ERR = <NUM_LIT:3> <EOL> WRONG_DOCUMENT_ERR = <NUM_LIT:4> <EOL> INVALID_CHARACTER_ERR = <NUM_LIT:5> <EOL> NO_DATA_ALLOWED_ERR = <NUM_LIT:6> <EOL> NO_MODIFICATION_ALLOWED_ERR = <NUM_LIT:7> <EOL> NOT_FOUND_ERR = <NUM_LIT:8> <EOL> NOT_SUPPORTED_ERR = <NUM_LIT:9> <EOL> INUSE_ATTRIBUTE_ERR = <NUM_LIT:10> <EOL> INVALID_STATE_ERR = <NUM_LIT:11> <EOL> SYNTAX_ERR = <NUM_LIT:12> <EOL> INVALID_MODIFICATION_ERR = <NUM_LIT> <EOL> NAMESPACE_ERR = <NUM_LIT> <EOL> INVALID_ACCESS_ERR = <NUM_LIT:15> <EOL> VALIDATION_ERR = <NUM_LIT:16> <EOL> UNSPECIFIED_EVENT_TYPE_ERR = <NUM_LIT:0> <EOL> FT_EXCEPTION_BASE = <NUM_LIT:1000> <EOL> XML_PARSE_ERR = FT_EXCEPTION_BASE + <NUM_LIT:1> <EOL> BAD_BOUNDARYPOINTS_ERR = <NUM_LIT:1> <EOL> INVALID_NODE_TYPE_ERR = <NUM_LIT:2> <EOL> class DOMException ( Exception ) : <EOL> def __init__ ( self , code , msg = '<STR_LIT>' ) : <EOL> self . code = code <EOL> self . msg = msg or DOMExceptionStrings [ code ] <EOL> def __str__ ( self ) : <EOL> return self . msg <EOL> class EventException ( Exception ) : <EOL> def __init__ ( self , code , msg = '<STR_LIT>' ) : <EOL> self . code = code <EOL> self . msg = msg or EventExceptionStrings [ code ] <EOL> return <EOL> def __str__ ( self ) : <EOL> return self . msg <EOL> class RangeException ( Exception ) : <EOL> def __init__ ( self , code , msg ) : <EOL> self . code = code <EOL> self . msg = msg or RangeExceptionStrings [ code ] <EOL> Exception . __init__ ( self , self . msg ) <EOL> class FtException ( Exception ) : <EOL> def __init__ ( self , code , * args ) : <EOL> self . code = code <EOL> self . msg = FtExceptionStrings [ code ] % args <EOL> return <EOL> def __str__ ( self ) : <EOL> return self . msg <EOL> class IndexSizeErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INDEX_SIZE_ERR , msg ) <EOL> class DomstringSizeErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , DOMSTRING_SIZE_ERR , msg ) <EOL> DOMStringSizeErr = DomstringSizeErr <EOL> class HierarchyRequestErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , HIERARCHY_REQUEST_ERR , msg ) <EOL> class WrongDocumentErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , WRONG_DOCUMENT_ERR , msg ) <EOL> class InvalidCharacterErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INVALID_CHARACTER_ERR , msg ) <EOL> class NoDataAllowedErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , NO_DATA_ALLOWED_ERR , msg ) <EOL> class NoModificationAllowedErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , NO_MODIFICATION_ALLOWED_ERR , msg ) <EOL> class NotFoundErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , NOT_FOUND_ERR , msg ) <EOL> class NotSupportedErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , NOT_SUPPORTED_ERR , msg ) <EOL> class InuseAttributeErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INUSE_ATTRIBUTE_ERR , msg ) <EOL> class InvalidStateErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INVALID_STATE_ERR , msg ) <EOL> class SyntaxErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , SYNTAX_ERR , msg ) <EOL> class InvalidModificationErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INVALID_MODIFICATION_ERR , msg ) <EOL> class NamespaceErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , NAMESPACE_ERR , msg ) <EOL> class InvalidAccessErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , INVALID_ACCESS_ERR , msg ) <EOL> class ValidationErr ( DOMException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> DOMException . __init__ ( self , VALIDATION_ERR , msg ) <EOL> class UnspecifiedEventTypeErr ( EventException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> EventException . __init__ ( self , UNSPECIFIED_EVENT_TYPE_ERR , msg ) <EOL> class XmlParseErr ( FtException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> FtException . __init__ ( self , XML_PARSE_ERR , msg ) <EOL> class BadBoundaryPointsErr ( RangeException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> RangeException . __init__ ( self , BAD_BOUNDARYPOINTS_ERR , msg ) <EOL> class InvalidNodeTypeErr ( RangeException ) : <EOL> def __init__ ( self , msg = '<STR_LIT>' ) : <EOL> RangeException . __init__ ( self , INVALID_NODE_TYPE_ERR , msg ) <EOL> XML_NAMESPACE = "<STR_LIT>" <EOL> XMLNS_NAMESPACE = "<STR_LIT>" <EOL> XHTML_NAMESPACE = "<STR_LIT>" <EOL> EMPTY_NAMESPACE = None <EOL> EMPTY_PREFIX = None <EOL> import MessageSource <EOL> DOMExceptionStrings = MessageSource . __dict__ [ '<STR_LIT>' ] <EOL> EventExceptionStrings = MessageSource . __dict__ [ '<STR_LIT>' ] <EOL> FtExceptionStrings = MessageSource . __dict__ [ '<STR_LIT>' ] <EOL> RangeExceptionStrings = MessageSource . __dict__ [ '<STR_LIT>' ] <EOL> from domreg import getDOMImplementation , registerDOMImplementation </s>
