[xml] pretty-print & format
- From: Afanasiy Fet <dailylama gmail com>
- To: xml gnome org
- Subject: [xml] pretty-print & format
- Date: Fri, 2 Aug 2013 11:33:51 +0300
While libxml does a great job reducing amount of text with ‘xmlDocDumpFormatMemoryEnc’ 's last argument, ‘format’ to remove spaces & newlines and converting <Node></Node> to <Node/>.
I'd like it to drop the root node completely if all childs are empty, like here:
<root>
<Node1/>
</root>
Or something else what may help reduce network load.
[Date Prev][
Date Next] [Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]