[xml] xmlwriter and writing canonicalized
- From: Prashant R <ramapra gmail com>
- To: xml gnome org
- Subject: [xml] xmlwriter and writing canonicalized
- Date: Thu, 18 Mar 2010 15:55:08 -0700
Hi ,Â
I m using libxml 2.7.1 on LinuxÂ
I am using theÂxmlTextWriterStartElement APIÂ
xmlTextWriterStartElement(writer, BAD_CAST "Foo")
if(..)
Write Sub ElementÂ
xmlTextWriterEndElement(writer)
I find that in some cases when the if(..) evaluates to false the subelement is not writtenÂ
and the outer element Foo is written out asÂ
<Foo/>
Is there a way I can force this to always write this asÂ
<Foo></Foo>
even if there is no data ?Â
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]