BaseElement
===========

.. autoclass:: svgwrite.base.BaseElement

.. automethod:: svgwrite.base.BaseElement.__init__

Attributes
----------

.. attribute:: BaseElement.attribs

   *dict* of SVG attributes

.. attribute:: BaseElement.elements

   *list* of SVG subelements

Methods
-------

.. automethod:: svgwrite.base.BaseElement.add

.. automethod:: svgwrite.base.BaseElement.tostring

.. automethod:: svgwrite.base.BaseElement.get_xml

.. automethod:: svgwrite.base.BaseElement.get_id

.. automethod:: svgwrite.base.BaseElement.get_iri

.. automethod:: svgwrite.base.BaseElement.get_funciri

.. automethod:: svgwrite.base.BaseElement.update

.. automethod:: svgwrite.base.BaseElement.__getitem__

.. automethod:: svgwrite.base.BaseElement.__setitem__

.. automethod:: svgwrite.base.BaseElement.set_desc

.. automethod:: svgwrite.base.BaseElement.set_metadata

set/get SVG attributes::

   element['attribute'] = value
   value = element['attribute']

   attribs = {
     'class' = 'css-class',
     'stroke' = 'black',
   }
   element.update(attribs)

Common SVG Attributes
---------------------

* :doc:`Core Attributes </attributes/core>`
* :doc:`Conditional Processing Attributes </attributes/conditional_processing>`
* :doc:`Document Event Attributes </attributes/document_event>`
* :doc:`Graphical Event Attributes </attributes/graphical_event>`
* :doc:`Presentation Attributes </attributes/presentation>`
* :doc:`XLink Attributes </attributes/xlink>`
