ó
è¾bc           @   s:  d  Z  d d= d „  ƒ  YZ d Z d Z d Z d Z d Z d Z d	 Z d
 Z	 d Z
 d Z d Z d Z d Z d Z d Z d Z d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d „  ƒ  YZ d e f d  „  ƒ  YZ d! e f d" „  ƒ  YZ d# e f d$ „  ƒ  YZ d% e f d& „  ƒ  YZ d' e f d( „  ƒ  YZ d) e f d* „  ƒ  YZ d+ e f d, „  ƒ  YZ d- e f d. „  ƒ  YZ  d/ e f d0 „  ƒ  YZ! d1 e f d2 „  ƒ  YZ" d3 e f d4 „  ƒ  YZ# d5 d> d6 „  ƒ  YZ$ d7 Z% d8 Z& d9 Z' d< Z) d< Z* d: d; l+ m, Z, m- Z- d< S(?   s  W3C Document Object Model implementation for Python.

The Python mapping of the Document Object Model is documented in the
Python Library Reference in the section on the xml.dom package.

This package contains the following modules:

minidom -- A simple implementation of the Level 1 DOM with namespace
           support added (based on the Level 2 specification) and other
           minor Level 2 functionality.

pulldom -- DOM builder supporting on-demand tree-building for selected
           subtrees of the document.

t   Nodec           B   sV   e  Z d  Z d Z d Z d Z d Z d Z d Z d Z	 d Z
 d	 Z d
 Z d Z d Z RS(   s$   Class giving the NodeType constants.i   i   i   i   i   i   i   i   i	   i
   i   i   (   t   __name__t
   __module__t   __doc__t   ELEMENT_NODEt   ATTRIBUTE_NODEt	   TEXT_NODEt   CDATA_SECTION_NODEt   ENTITY_REFERENCE_NODEt   ENTITY_NODEt   PROCESSING_INSTRUCTION_NODEt   COMMENT_NODEt   DOCUMENT_NODEt   DOCUMENT_TYPE_NODEt   DOCUMENT_FRAGMENT_NODEt   NOTATION_NODE(    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR       s   	i   i   i   i   i   i   i   i   i	   i
   i   i   i   i   i   i   t   DOMExceptionc           B   s    e  Z d  Z d „  Z d „  Z RS(   sm   Abstract base class for DOM exceptions.
    Exceptions with specific codes are specializations of this class.c         O   s5   |  j  t k r t d ƒ ‚ n  t j |  | | Ž d  S(   Ns0   DOMException should not be instantiated directly(   t	   __class__R   t   RuntimeErrort	   Exceptiont   __init__(   t   selft   argst   kw(    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR   A   s    c         C   s   |  j  S(   N(   t   code(   R   (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyt	   _get_codeG   s    (   R   R   R   R   R   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR   =   s   	t   IndexSizeErrc           B   s   e  Z e Z RS(    (   R   R   t   INDEX_SIZE_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR   K   s   t   DomstringSizeErrc           B   s   e  Z e Z RS(    (   R   R   t   DOMSTRING_SIZE_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR   N   s   t   HierarchyRequestErrc           B   s   e  Z e Z RS(    (   R   R   t   HIERARCHY_REQUEST_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR   Q   s   t   WrongDocumentErrc           B   s   e  Z e Z RS(    (   R   R   t   WRONG_DOCUMENT_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR    T   s   t   InvalidCharacterErrc           B   s   e  Z e Z RS(    (   R   R   t   INVALID_CHARACTER_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR"   W   s   t   NoDataAllowedErrc           B   s   e  Z e Z RS(    (   R   R   t   NO_DATA_ALLOWED_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR$   Z   s   t   NoModificationAllowedErrc           B   s   e  Z e Z RS(    (   R   R   t   NO_MODIFICATION_ALLOWED_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR&   ]   s   t   NotFoundErrc           B   s   e  Z e Z RS(    (   R   R   t   NOT_FOUND_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR(   `   s   t   NotSupportedErrc           B   s   e  Z e Z RS(    (   R   R   t   NOT_SUPPORTED_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR*   c   s   t   InuseAttributeErrc           B   s   e  Z e Z RS(    (   R   R   t   INUSE_ATTRIBUTE_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR,   f   s   t   InvalidStateErrc           B   s   e  Z e Z RS(    (   R   R   t   INVALID_STATE_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR.   i   s   t	   SyntaxErrc           B   s   e  Z e Z RS(    (   R   R   t
   SYNTAX_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR0   l   s   t   InvalidModificationErrc           B   s   e  Z e Z RS(    (   R   R   t   INVALID_MODIFICATION_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR2   o   s   t   NamespaceErrc           B   s   e  Z e Z RS(    (   R   R   t   NAMESPACE_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR4   r   s   t   InvalidAccessErrc           B   s   e  Z e Z RS(    (   R   R   t   INVALID_ACCESS_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR6   u   s   t   ValidationErrc           B   s   e  Z e Z RS(    (   R   R   t   VALIDATION_ERRR   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR8   x   s   t   UserDataHandlerc           B   s&   e  Z d  Z d Z d Z d Z d Z RS(   sB   Class giving the operation constants for UserDataHandler.handle().i   i   i   i   (   R   R   R   t   NODE_CLONEDt   NODE_IMPORTEDt   NODE_DELETEDt   NODE_RENAMED(    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyR:   {   s
   s$   http://www.w3.org/XML/1998/namespaces   http://www.w3.org/2000/xmlns/s   http://www.w3.org/1999/xhtmliÿÿÿÿ(   t   getDOMImplementationt   registerDOMImplementationN(    (    (.   R   R    R   R   R   R!   R#   R%   R'   R)   R+   R-   R/   R1   R3   R5   R7   R9   R   R   R   R   R   R    R"   R$   R&   R(   R*   R,   R.   R0   R2   R4   R6   R8   R:   t   XML_NAMESPACEt   XMLNS_NAMESPACEt   XHTML_NAMESPACEt   Nonet   EMPTY_NAMESPACEt   EMPTY_PREFIXt   domregR?   R@   (    (    (    s&   /usr/lib/python2.7/xml/dom/__init__.pyt   <module>   sR   
