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 |