Re: [xml] xmlwriter and writing canonicalized
- From: Rob Richards <rrichards cdatazone org>
- To: Prashant R <ramapra gmail com>
- Cc: xml gnome org
- Subject: Re: [xml] xmlwriter and writing canonicalized
- Date: Fri, 19 Mar 2010 06:42:19 -0400
Prashant R wrote:
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 ?
xmlTextWriterFullEndElement
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]