From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (from majordomo@localhost) by pauillac.inria.fr (8.7.6/8.7.3) id RAA06715; Tue, 3 Dec 2002 17:56:25 +0100 (MET) X-Authentication-Warning: pauillac.inria.fr: majordomo set sender to owner-caml-list@pauillac.inria.fr using -f Received: from concorde.inria.fr (concorde.inria.fr [192.93.2.39]) by pauillac.inria.fr (8.7.6/8.7.3) with ESMTP id RAA06952 for ; Tue, 3 Dec 2002 17:56:24 +0100 (MET) Received: from fort-point-station.mit.edu (FORT-POINT-STATION.MIT.EDU [18.7.7.76]) by concorde.inria.fr (8.11.1/8.11.1) with ESMTP id gB3GuNX12958 for ; Tue, 3 Dec 2002 17:56:23 +0100 (MET) Received: from grand-central-station.mit.edu (GRAND-CENTRAL-STATION.MIT.EDU [18.7.21.82]) by fort-point-station.mit.edu (8.9.2/8.9.2) with ESMTP id LAA08996; Tue, 3 Dec 2002 11:56:22 -0500 (EST) Received: from melbourne-city-street.mit.edu (MELBOURNE-CITY-STREET.MIT.EDU [18.7.21.86]) by grand-central-station.mit.edu (8.9.2/8.9.2) with ESMTP id LAA22052; Tue, 3 Dec 2002 11:56:22 -0500 (EST) Received: from mit.edu ([18.194.0.193]) by melbourne-city-street.mit.edu (8.9.2/8.9.2) with ESMTP id LAA17037; Tue, 3 Dec 2002 11:56:20 -0500 (EST) Date: Tue, 3 Dec 2002 11:56:20 -0500 Subject: Re: [Caml-list] parsing XML configuration file Content-Type: text/plain; charset=US-ASCII; format=flowed Mime-Version: 1.0 (Apple Message framework v548) Cc: caml-list@inria.fr To: Basile STARYNKEVITCH From: Mike Lin In-Reply-To: <15852.50696.988643.235558@hector.lesours> Message-Id: <25BEE70A-06E0-11D7-88AB-000393AE4242@mit.edu> Content-Transfer-Encoding: 7bit X-Mailer: Apple Mail (2.548) Sender: owner-caml-list@pauillac.inria.fr Precedence: bulk > > I'm currently using PXP for that purpose, but I might be wrong. > > Should I consider switching to other Ocaml XML parsers (in particular > yaxpo) to parse such a file (whose DTD is fixed by me, and which is > mostly a shallow tree, not a recursive one..). > > Yes I know my question is a bit vague, but I beg for advice. Yaxpo is a nonvalidating parser, so if you require the DTD validation, you should keep using PXP. If you do not require the DTD validation, for parsing some flat XML stored in a file, there is no particular reason why you should switch, since PXP and Yaxpo both do this fine. The only situation in general in which you really have to use Yaxpo instead of PXP is when you need to achieve weird control effects with stopping and restarting the parser; I don't think this is the case for you. Otherwise, the differences between the parsers are not that much. They have different styles of data models, which may be significant. Yaxpo has fewer dependencies. Because of all the CPS constructs Yaxpo uses internally, PXP is probably faster (although I haven't tested it). -Mike ------------------- To unsubscribe, mail caml-list-request@inria.fr Archives: http://caml.inria.fr Bug reports: http://caml.inria.fr/bin/caml-bugs FAQ: http://caml.inria.fr/FAQ/ Beginner's list: http://groups.yahoo.com/group/ocaml_beginners