XML Output: libxo - provide single API to output TXT, XML, JSON and HTML

Jos Backus jos at catnook.com
Wed Jul 30 16:18:48 UTC 2014


On Jul 30, 2014 12:15 AM, "Baptiste Daroussin" <bapt at freebsd.org> wrote:
>
> On Tue, Jul 29, 2014 at 09:44:17PM -0700, Jos Backus wrote:
> > On Jul 29, 2014 8:46 PM, "Simon J. Gerraty" <sjg at juniper.net> wrote:
> > >
> > >
> > > On Tue, 29 Jul 2014 16:30:53 -0700, Jos Backus writes:
> > > >> You certainly cannot wait for all of it to arrive before you start
> > > >> rendering.
> > > >
> > > >Understood. This is why a serialization output format that supports
> > > >streaming data is useful.
> > >
> > > Indeed; XML works fine for that.
> >
> > Not to beat a dead horse, but so does YAML, and it's more
lightweight/less
> > verbose so I personally find it more elegant. But sure, XML would work
as
> > well.
> >
> YAML is not more lightweight at all, it is really heavy to parse compared
to
> XML or JSON.

By lightweight I meant syntax verbosity, not computational load (although
it seems easy to emit). It's a more flexible format, and that comes with a
certain price. The question is whether that flexibility is needed or
useful. If JSON can't be used because of its limitations, I would
personally prefer the less verbose YAML over XML.

Jos.

>
> regards,
> Bapt


More information about the freebsd-arch mailing list