Back to index

plone3  3.1.7
Public Member Functions
GenericSetup.utils.PrettyDocument Class Reference
Inheritance diagram for GenericSetup.utils.PrettyDocument:
Inheritance graph
[legend]
Collaboration diagram for GenericSetup.utils.PrettyDocument:
Collaboration graph
[legend]

List of all members.

Public Member Functions

def createElement
def createElementNS
def writexml

Detailed Description

minidom document with 'pretty' XML output.

Definition at line 418 of file utils.py.


Member Function Documentation

def GenericSetup.utils.PrettyDocument.createElement (   self,
  tagName 
)

Definition at line 423 of file utils.py.

00423 
00424     def createElement(self, tagName):
00425         e = _Element(tagName)
00426         e.ownerDocument = self
00427         return e

def GenericSetup.utils.PrettyDocument.createElementNS (   self,
  namespaceURI,
  qualifiedName 
)

Definition at line 428 of file utils.py.

00428 
00429     def createElementNS(self, namespaceURI, qualifiedName):
00430         prefix, localName = _nssplit(qualifiedName)
00431         e = _Element(qualifiedName, namespaceURI, prefix)
00432         e.ownerDocument = self
00433         return e

Here is the call graph for this function:

def GenericSetup.utils.PrettyDocument.writexml (   self,
  writer,
  indent = "",
  addindent = "",
  newl = "",
  encoding = None 
)

Definition at line 435 of file utils.py.

00435 
00436                  encoding = None):
00437         if encoding is None:
00438             writer.write('<?xml version="1.0"?>\n')
00439         else:
00440             writer.write('<?xml version="1.0" encoding="%s"?>\n' % encoding)
00441         for node in self.childNodes:
00442             node.writexml(writer, indent, addindent, newl)
00443 

Here is the caller graph for this function:


The documentation for this class was generated from the following file: