XML Output: libxo - provide single API to output TXT, XML, JSON and HTML
Jos Backus
jos at catnook.com
Tue Jul 29 06:04:03 UTC 2014
On Jul 28, 2014 10:57 PM, "Adrian Chadd" <adrian at freebsd.org> wrote:
>
> Holy ... !
>
> What really matter is whether the library API that you're going to
> shoehorn into plenty of utilities is expressive enough to express a
> whole bunch of different output types.
>
> So it doesn't matter if you want JSON, or YAML, or XML, or the native
> tool output. The trick is whether the library API is good enough.
>
> So if you want to win people over, just make sure it gets adopted
> throughout other tools. :)
Wouldn't the API be a way to build up an in-memory combination of lists and
maps in most cases, which then gets serialized out at emission time? Kind
of like calling object.to_yaml, where object is a Hash, but in C?
Jos
>
> -a
More information about the freebsd-arch
mailing list