Re: [xml] how to not save <?xml version="1.0">
- From: Boz <boz boz org uk>
- To: "Steven 黄" <huangxin52 hotmail com>
- Cc: xml gnome org
- Subject: Re: [xml] how to not save <?xml version="1.0">
- Date: Mon, 25 Aug 2008 19:12:25 +0100
2008/8/25 Steven 黄 <huangxin52 hotmail com>:
I am a xml beginnner, and I am using libxml2 to edit some data for a system
configuration file which doesn't contain <?xml version="1.0">(all elements
in this xml are quite standard). Even Though adding this tag to the file has
no effect on anything, I still don't like to add it.
As per http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveOption
You can pass XML_SAVE_NO_DECL to prevent the xml declaration being output
Hope that helps
Boz
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]