On Sun, Mar 09, 2008 at 09:09:23PM +1100, Alistair Leslie-Hughes wrote:
> "Daniel Veillard" <[EMAIL PROTECTED]> wrote in message 
> news:[EMAIL PROTECTED]
> > On Fri, Mar 07, 2008 at 04:47:31PM -0800, Cory Nelson wrote:
> >> An XML declaration might look like it, but the standard says it is not
> >> a PI and that PIs cant be named "xml" (or any case variant of it).  So
> >> I would say the only bug here is that xmlNewPI is not returning with
> >> an error.
> >
> >  Agreed,
> >
> Thanks all your input.
> 
> Since its not a PI node, how do I change the encoding of the XML document.

  there is a doc->encoding string, but the best is to use the proper 
primitive, all xmlSave... from 
  http://xmlsoft.org/html/libxml-xmlsave.html
take an encoding input.

Daniel

-- 
Red Hat Virtualization group http://redhat.com/virtualization/
Daniel Veillard      | virtualization library  http://libvirt.org/
[EMAIL PROTECTED]  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/
_______________________________________________
xml mailing list, project page  http://xmlsoft.org/
[email protected]
http://mail.gnome.org/mailman/listinfo/xml

Reply via email to