Ah; all mine did (probably) was add the attribute to the document tag; it
didn't have any effect on the generated XML.  So the feature won't do
anything for your case, and the solution you used is the correct one (unless
I pass unrecognized keywords on to the DOM layer, which would be an
appropriate point to make in the ticket).

Thanks.

Peter

2010/7/7 David Hrbáč <hrbac.c...@seznam.cz>

> 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
pyxb-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/pyxb-users

Reply via email to