Exemplo n.º 1
0
 def createXMLDocument(self, accountRecord, destOKATO):
     doc = CXMLHelper.createDomDocument(rootElementName='ZL_LIST',
                                        encoding=self.encoding)
     rootElement = CXMLHelper.getRootElement(doc)
     self.addHeaderElement(rootElement, destOKATO)
     accountElement = self.addAccountElement(rootElement, accountRecord)
     return doc, accountElement
Exemplo n.º 2
0
 def createXMLDocument(self, title):
     doc = CXMLHelper.createDomDocument(rootElementName='MAIN',
                                        encoding=self.encoding)
     rootElement = CXMLHelper.getRootElement(doc)
     self.addHeaderElement(rootElement)
     return doc, rootElement