[xml] How to "inline" close-tags?

I'm trying to get libxml to output xml without separate close-tags - I want "<element attr="1" />" instead of the apparent default "<element attr="1"></element>" - but can't seem to get it to happen.  Tried using xmlDocDumpFormatMemoryEnc(), and xmlSaveToBuffer()/xmlSaveDoc() with XML_SAVE_NO_EMPTY, but both methods are outputting the second example above.

Any tips?

Thanks in advance,

        ---  Mark  ---

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]