[xml] xmlwriter and writing canonicalized



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]