From owner-freebsd-arch@FreeBSD.ORG Fri Aug 15 07:04:00 2014 Return-Path: Delivered-To: arch@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [8.8.178.115]) (using TLSv1 with cipher ADH-AES256-SHA (256/256 bits)) (No client certificate requested) by hub.freebsd.org (Postfix) with ESMTPS id F0DDDF88; Fri, 15 Aug 2014 07:03:59 +0000 (UTC) Received: from elvis.mu.org (elvis.mu.org [192.203.228.196]) by mx1.freebsd.org (Postfix) with ESMTP id DA0942065; Fri, 15 Aug 2014 07:03:59 +0000 (UTC) Received: from AlfredMacbookAir.local (c-76-21-10-192.hsd1.ca.comcast.net [76.21.10.192]) by elvis.mu.org (Postfix) with ESMTPSA id DE129346DE73; Fri, 15 Aug 2014 00:03:58 -0700 (PDT) Message-ID: <53EDB0EF.6090902@mu.org> Date: Fri, 15 Aug 2014 00:04:15 -0700 From: Alfred Perlstein User-Agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10.9; rv:24.0) Gecko/20100101 Thunderbird/24.6.0 MIME-Version: 1.0 To: "Simon J. Gerraty" Subject: Re: XML Output: libxo - provide single API to output TXT, XML, JSON and HTML References: <201408141640.s7EGe422096656@idle.juniper.net> <53ED57F2.5020808@mu.org> <20140815053604.9E40B580A2@chaos.jnpr.net> In-Reply-To: <20140815053604.9E40B580A2@chaos.jnpr.net> Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit Cc: Marcel Moolenaar , Phil Shafer , John-Mark Gurney , arch@freebsd.org, Poul-Henning Kamp , freebsd-arch , Konstantin Belousov X-BeenThere: freebsd-arch@freebsd.org X-Mailman-Version: 2.1.18-1 Precedence: list List-Id: Discussion related to FreeBSD architecture List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 15 Aug 2014 07:04:00 -0000 On 8/14/14, 10:36 PM, Simon J. Gerraty wrote: > On Thu, 14 Aug 2014 17:44:34 -0700, Alfred Perlstein writes: >> I don't understand the need to query these programs for support of the >> option. > It's very simlpe. You run app A and tell it to output XML. > App A needs to run app B, and needs to know if it can output valid XML > or whether all its output needs to be wrapped/escaped. > Failure to handle this will result in garbage. > > Sure that is fairly simple, but where will that really even be needed in practice right now? It seems fairly contrived, for what use case? Something like "find / --type libxo --exec {} \;" ? Or something real? This really seems to be going off the deep end of over engineering. How many programs have been successfully converted over to libxo at this point? -Alfred