Re: [xml] empty tag
- From: Daniel Veillard <veillard redhat com>
- To: "Jean-Francois Dupont-Viel (QA/EMC)" <jean-francois dupont-viel ericsson com>
- Cc: xml gnome org
- Subject: Re: [xml] empty tag
- Date: Thu, 6 Jul 2006 14:08:30 -0400
On Thu, Jul 06, 2006 at 01:34:18PM -0400, Jean-Francois Dupont-Viel (QA/EMC) wrote:
Hi,
We are loading a xml file which contains a tag with no value :
<tag></tag>
Further away, we call xmlSave() which convert the same tag as this :
<tag/>
Which is correct of course ! But I would like to know if there is a way
of preventing this change anyway, and keep it`s original format.
Use the functions from the xmlsave module and create the context
with the XML_SAVE_NO_EMPTY flag:
http://xmlsoft.org/html/libxml-xmlsave.html#xmlSaveOption
Daniel
--
Daniel Veillard | Red Hat 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]