Previous topic

Case

Next topic

Context

This Page

CData

Module: cdata

Author: arjs.net

License: http://opensource.org/licenses/mit-license.html; year=2013,2014; copyright holders=arjs.net

Module for the cdata extension

class cdata.ElementTreeCDATA(element=None, file=None)

ElementTreeCDATA: Extension to write a cdata section to a xml file

_write(xmlfile, node, encoding, namespaces)
Parameters:
  • xmlfile (file) – xml file to write
  • node (Element) – Node element to write
  • encoding (str) – Encoding type
  • namespaces (str) – Namespace to use
Return type:

None

Write the xml data extended with cdata block(s)

cdata.cdata(text=None)
Parameters:text (str) – cdata content
Returns:
Return type:Element

Create a cdata element