[XML-SIG] FIXED: Accessing DOM nodes in Python
Thomas Gagne
tgagne at ix.netcom.com
Wed Oct 4 23:18:09 EDT 2000
The buffer I was getting back was from a middleware routine retrieving each
line one at a time. Since the middleware's API is C based, string are
returned with a trailing NULL byte. Since the API doesn't care whether the
data is text or binary it dutifully returns the trailing NULL byte to the
Python interface which perturbs string processing--especially when one string
is appended to another, the NULL bytes remain.
I have to figure out where the appropriate place is to trim the NULL byte from
the end of each line and things should be cool.
I'd like to thank everyone for their help.
--
.tom
More information about the Python-list
mailing list