Version française
Home     About     Download     Resources     Contact us    

This site is updated infrequently. For up-to-date information, please visit the new OCaml website at

Browse thread
[Caml-list] parsing XML configuration file
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Mike Lin <mikelin@M...>
Subject: Re: [Caml-list] parsing XML configuration file
> 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).


To unsubscribe, mail Archives:
Bug reports: FAQ:
Beginner's list: