Re: [xml] Functions of xmlsave.c
- From: Daniel Veillard <veillard redhat com>
- To: SATISH KUMAR <haisatya_4u rediffmail com>
- Cc: xml gnome org, xml-request gnome org
- Subject: Re: [xml] Functions of xmlsave.c
- Date: Mon, 13 Jun 2005 05:47:16 -0400
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/
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]