Dne 3.7.2010 15:01, Peter Bigot napsal(a):
> Great.
>
> To put the encoding in the generated document, the best way is to go through
> the DOM stage explicitly:
>
> dom = dp.toDOM()
> dom.documentElement.setAttribute('encoding', 'UTF-8')
> print dom.toxml()
Peter,
Your suggestion didn't work for me. This did the trick:
dom = dp.toDOM()
print dom.toxml(encoding="utf-8")
> If you would, please file a request on the PyXB trac server
> https://sourceforge.net/apps/trac/pyxb/ for me to update BindingDOMSupport
> to provide an facility for setting this and maybe other document-level
> attributes.
>
> Peter
I will try to sum it up from my point and then create a ticket. OK?
Regards,
David
------------------------------------------------------------------------------
This SF.net email is sponsored by Sprint
What will you do first with EVO, the first 4G phone?
Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first
_______________________________________________
pyxb-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/pyxb-users