Application API

(C) 2008, 2009 Kerim Mansour For licensing information please refer to license.txt

class pysvg.core.BaseElement(elementName)

This is the base class for all svg elements like title etc. It provides common functionality. It should NOT be directly used by anyone.

getXML()

Return a XML representation of the current element. This function can be used for debugging purposes. It is also used by getXML in SVG

@return: the representation of the current element as an xml string

quote_attrib(inStr)
Transforms characters between xml notation and python notation.
save(filename)
Stores any element in a svg file (including header). Calling this method only makes sense if the root element is an svg elemnt
wrap_xml(xml)
Method that provides a standard svg header string for a file

This Page