Re: [xml] pretty-print & format



On Fri, 2013-08-02 at 14:53 +0100, Alex Bligh wrote:
On 2 Aug 2013, at 14:38, Liam R E Quin wrote:

On Fri, 2013-08-02 at 11:33 +0300, Afanasiy Fet wrote:

what may help reduce network load.

Efficient XML Interchange (EXI) is a W3C spec for XML-specific
compression that may be of interest, depending on what you're doing.


gzip works well and is built into libxml (at least on the reader side I think)

"well" is subjective of course, but yes, gzip can be effective as a
first cut. EXI has the theoretical advantage of transferring the
abstract tree, not the syntax, so that the reader doesn't need to
decompress the input and then parse pointy brackets, but can
reconstitute an in-memory tree directly. It can also make use of a
shared schema to get further reductions in bandwidth use. These
advantages can be especially significant on mobile, low-performance or
fixed-memory devices.

Liam

-- 
Liam Quin - XML Activity Lead, W3C, http://www.w3.org/People/Quin/
Pictures from old books: http://fromoldbooks.org/
Ankh: irc.sorcery.net irc.gnome.org freenode/#xml



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