From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: X-Original-To: caml-list@yquem.inria.fr Delivered-To: caml-list@yquem.inria.fr Received: from nez-perce.inria.fr (nez-perce.inria.fr [192.93.2.78]) by yquem.inria.fr (Postfix) with ESMTP id E499FBBBB for ; Tue, 28 Feb 2006 16:47:56 +0100 (CET) Received: from furbychan.cocan.org (furbychan.cocan.org [80.68.91.176]) by nez-perce.inria.fr (8.13.0/8.13.0) with ESMTP id k1SFlt5r007903 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=NO) for ; Tue, 28 Feb 2006 16:47:56 +0100 Received: from rich by furbychan.cocan.org with local (Exim 3.35 #1 (Debian)) id 1FE74E-0002WK-00; Tue, 28 Feb 2006 15:47:14 +0000 Date: Tue, 28 Feb 2006 15:47:13 +0000 To: Hendrik Tews Cc: caml-list@yquem.inria.fr Subject: Re: [Caml-list] xml tree -- variant type tree Message-ID: <20060228154708.GA9583@furbychan.cocan.org> References: <17412.27387.963123.675231@ithif59.inf.tu-dresden.de> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <17412.27387.963123.675231@ithif59.inf.tu-dresden.de> User-Agent: Mutt/1.5.9i From: Richard Jones X-Miltered: at nez-perce with ID 440470AB.000 by Joe's j-chkmail (http://j-chkmail.ensmp.fr)! X-Spam: no; 0.00; caml-list:01 hendrik:01 tews:01 corresponds:01 nodes:01 cduce:01 parser:01 ioxml:01 ioxml:01 notepad:01 28,:98 wrote:01 wrote:01 constructor:01 define:01 X-Spam-Checker-Version: SpamAssassin 3.0.3 (2005-04-27) on yquem.inria.fr X-Spam-Level: X-Spam-Status: No, score=0.0 required=5.0 tests=SPF_FAIL autolearn=disabled version=3.0.3 On Tue, Feb 28, 2006 at 04:23:39PM +0100, Hendrik Tews wrote: > I would like to read an XML file into an element of some variant > type, where each constructor corresponds to precisely one type of > xml nodes. Of course I would need to define the variant type > beforehand. But how to proceed then? CDuce is a possibility. It is tremendously powerful, and also quite obscure to go along with it, but I wrote a nice SOAP/WSDL/XSI parser using it. IoXML is another: http://pauillac.inria.fr/~ddr/IoXML/index.html Rich. -- Richard Jones, CTO Merjis Ltd. Merjis - web marketing and technology - http://merjis.com Team Notepad - intranets and extranets for business - http://team-notepad.com