Ńň
mEc           @   s0   d  Z  d d k l Z d e f d     YZ d S(   s'   
Utilities for XML generation/parsing.
i˙˙˙˙(   t   XMLGeneratort   SimplerXMLGeneratorc           B   s   e  Z d d d   Z RS(   c         C   sV   | d j o
 h  } n |  i | |  | d j	 o |  i |  n |  i |  d S(   s9   Convenience method for adding an element with no childrenN(   t   Nonet   startElementt
   characterst
   endElement(   t   selft   namet   contentst   attrs(    (    s?   /usr/local/lib/python2.6/dist-packages/django/utils/xmlutils.pyt   addQuickElement   s     
N(   t   __name__t
   __module__R   R
   (    (    (    s?   /usr/local/lib/python2.6/dist-packages/django/utils/xmlutils.pyR      s   N(   t   __doc__t   xml.sax.saxutilsR    R   (    (    (    s?   /usr/local/lib/python2.6/dist-packages/django/utils/xmlutils.pyt   <module>   s   