Re: [xml] Duplicate PI nodes issue



On Sun, Mar 09, 2008 at 09:09:23PM +1100, Alistair Leslie-Hughes wrote:
"Daniel Veillard" <veillard redhat com> wrote in message 
news:20080308104619 GB8438 redhat com   
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/
veillard redhat com  | libxml GNOME XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine  http://rpmfind.net/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]