On Mon, Jun 13, 2005 at 09:31:14AM -0000, SATISH KUMAR wrote: > Hi All, > > I am using xmlSaveFormatFile function for dumping xml Document to a > file. If i use some specific encoded xml file (for example xml file encoded > in Latin1), the xmlSaveFormatFile function will dump the whole file > including XML decleration in Latin1 encoded format. > > XML Declerations should be encoded or not, if i use xmlSaveFormatFile > function of xmlsave.c.If i use the same Xml File generated by this > xmlSaveFormatFile function of xmlsave.c, that file is not being parsed by > Libxml2, it is switching to some other encoding Format.Please clarify my > doubt.
I'm not sure I understand your question, nor that it's specific to libxml2 Read appendix F of the XML specification: http://www.w3.org/TR/REC-xml/#sec-guessing when in doubt, re-read it :-) Daniel -- Daniel Veillard | Red Hat Desktop team http://redhat.com/ [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/ xml@gnome.org http://mail.gnome.org/mailman/listinfo/xml