E5XML/XMLStreamWriterBase.py

changeset 610
3a625b0793d8
parent 605
9c7527ecbf6e
child 791
9ec2ac20e54e
equal deleted inserted replaced
608:d8fea1e76975 610:3a625b0793d8
48 Public method to write the XML to the file. 48 Public method to write the XML to the file.
49 """ 49 """
50 # write the XML header 50 # write the XML header
51 self.writeStartDocument() 51 self.writeStartDocument()
52 52
53 def writeBasics(self, tag, pyobject):
54 """
55 Public method to write a tag with a basic Python object dump.
56
57 @param tag tag name (string)
58 @param pyobject object to be dumped
59 """
60 self.writeStartElement(tag)
61 self._writeBasics(pyobject)
62 self.writeEndElement()
63
53 def _writeBasics(self, pyobject): 64 def _writeBasics(self, pyobject):
54 """ 65 """
55 Protected method to dump an object of a basic Python type. 66 Protected method to dump an object of a basic Python type.
56 67
57 @param pyobject object to be dumped 68 @param pyobject object to be dumped

eric ide

mercurial