While generating an XML content, I get an empty node <node/>
, and I want it to be <node></node>
. (Since <node></node>
is the correct form of c14n, the progress called "converting empty elements to start-end tag pairs")
How should I convert it?
There's a way hinted by Jim Garrison(Thank you) to do this, by using xmlBufferCreate, xmlSaveToBuffer, xmlSaveDoc, xmlSaveClose with xmlSaveOption: XML_SAVE_NO_EMPTY