toxml needs encoding support
Brought to you by:
pabigot
PyXB's _TypeBinding_mixin.toxml() method does not accept encoding as the first positional argument. The delegation to xml.dom.Node.toxml() thus misses providing the encoding, with the result that the generated string is probably not in utf-8 and therefore probably won't be accepted by libxml2's rather picky reader.
commit 292cc586809872a46d9eafa39439ceaab466dd7c
Author: Peter A. Bigot <pabigot@‌>
Date: Wed Jun 13 13:44:56 2012 -0500