From owner-freebsd-current@FreeBSD.ORG Wed Apr 14 09:44:13 2004 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 5D8AE16A4CE; Wed, 14 Apr 2004 09:44:13 -0700 (PDT) Received: from happygiraffe.net (happygiraffe.net [81.6.215.59]) by mx1.FreeBSD.org (Postfix) with ESMTP id 17BBF43D46; Wed, 14 Apr 2004 09:44:13 -0700 (PDT) (envelope-from dom@happygiraffe.net) Received: from localhost (localhost.happygiraffe.net [127.0.0.1]) by happygiraffe.net (Postfix) with ESMTP id 876B8B8F6; Wed, 14 Apr 2004 17:44:11 +0100 (BST) Received: from happygiraffe.net ([127.0.0.1]) by localhost (ppe.happygiraffe.net [127.0.0.1]) (amavisd-new, port 10024) with LMTP id 33864-03; Wed, 14 Apr 2004 17:44:09 +0100 (BST) Received: by happygiraffe.net (Postfix, from userid 1001) id 82F80B8DC; Wed, 14 Apr 2004 17:44:09 +0100 (BST) Date: Wed, 14 Apr 2004 17:44:09 +0100 To: Stefan E?er , Martin , Garance A Drosihn , FreeBSD Current Message-ID: <20040414164409.GA34036@ppe.happygiraffe.net> References: <20040413121925.GB29867@voodoo.oberon.net> <407C4035.8020609@ciam.ru> <1081896823.772.58.camel@klotz.local> <1081901028.772.72.camel@klotz.local> <20040414161942.GB5753@StefanEsser.FreeBSD.org> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20040414161942.GB5753@StefanEsser.FreeBSD.org> User-Agent: Mutt/1.5.6i From: dom@happygiraffe.net (Dominic Mitchell) X-Virus-Scanned: by amavisd-new at happygiraffe.net Subject: Re: Second "RFC" on pkg-data idea for ports X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 14 Apr 2004 16:44:13 -0000 On Wed, Apr 14, 2004 at 06:19:42PM +0200, Stefan E?er wrote: > Based on my experiences, I'd rather not generate XML data > with printf(), since you have to be careful to encode special > characters correctly and the XML serializer does this for you > (including support for UTF-8, if desired). > In fact, I found that building a DOM tree in RAM using libxml2 > calls is quite simple. Tim Bray is developing a library called genx, designed for outputting xml more correctly than printf(). It's pretty small and simple. http://www.tbray.org/ongoing/When/200x/2004/02/20/GenxStatus -Dom