[xml] writing xml to a buffer (using python)


I don't know whether it is the right mailing list to post this question, since it deals
with Python.

I try to write the xml tree to a buffer: 

report = StringIO.StringIO()
reportDoc.saveFormatFileTo(report, 'ISO-8859-1', 1)

but that doesn't work. The error code is

Error Type: AttributeError
Error Value: _o

What kind of I/O buffers are needed?
Any ideas? Thanks in advance!


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]