Re: [xml] Avoiding emediate close of elements
- From: Martin Olsen <mro top-toy dk>
- To: Alfred <alfred mickautsch schuler-ag com>
- Cc: xml gnome org
- Subject: Re: [xml] Avoiding emediate close of elements
- Date: Wed, 7 Oct 2009 14:09:47 +0200
On Wednesday 07 October 2009 13:07:41 you wrote:
Use xmlTextWriterStartElement or xmlTextWriterStartElementNS with
xmlTextWriterFullEndElement
Thanks! Unfortunately, I still get the same result.
Here's the smallest code to reproduce:
writer = xmlNewTextWriterDoc( &doc, 0 );
xmlTextWriterStartDocument( writer, NULL, "UTF-8", NULL );
xmlTextWriterStartElement( writer, BAD_CAST "element" );
xmlTextWriterFullEndElement( writer );
xmlTextWriterEndDocument( writer );
xmlSaveFile( "-", doc );
Any other suggestions?
--
Yours sincerely,
TOP-TOY A/S
Martin Olsen, IT-Systemdeveloper
Telephone +45 4616 3710
Facsimile +45 4616 3681
All information in this e-mail and all transactions are subject to
TOP-TOY's standard terms and conditions:
http://www2.top-toy.com/Start?SuccTPL=legal_notice
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]