--- a/E5XML/XMLStreamWriterBase.py Mon Sep 13 16:14:10 2010 +0200 +++ b/E5XML/XMLStreamWriterBase.py Mon Sep 13 19:52:30 2010 +0200 @@ -50,6 +50,17 @@ # write the XML header self.writeStartDocument() + def writeBasics(self, tag, pyobject): + """ + Public method to write a tag with a basic Python object dump. + + @param tag tag name (string) + @param pyobject object to be dumped + """ + self.writeStartElement(tag) + self._writeBasics(pyobject) + self.writeEndElement() + def _writeBasics(self, pyobject): """ Protected method to dump an object of a basic Python type.