[XML-SIG] using PyXML on a string
Paul Tremblay
phthenry@earthlink.net
Mon, 26 May 2003 01:58:23 -0400
On Fri, May 23, 2003 at 01:19:29AM -0400, Thomas B. Passin wrote:
>
> One easy way is to use StringIO (or cStringIO) to turn the string into a
> file-like object. Then feed it to the parser as if it were a file.
>
Thanks. The documentation for cStringIO implies that you can't pass to
it a string containing unicode with values above 128. However, I found
the exact opposite to be true. If I pass a string containing uincode
above 128 to StringI0, I get a unicode error. If I use cStringIO, I
get no error.
I would rather use cStringIO anyway, since it is faster, but wanted to
know if I had missed something in the documentation.
thanks
Paul
--
************************
*Paul Tremblay *
*phthenry@earthlink.net*
************************