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
[OSR] Suggested topic - XML processing API
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: 2008-02-05 (05:08)
From: Alain Frisch <alain@f...>
Subject: Re: [Caml-list] [OSR] Suggested topic - XML processing API
Jim Miller wrote:
> I await suggestions/flames.

As suggested before, you really need to say something, at least, about:
- namespaces (including for attributes): the most acceptable solution is 
probably to do nothing about them and remove the first argument to the 
XmlElement constructor;
- encoding of strings in the internal representation: probably always utf-8;
- whether the parser may create XmlMany nodes: probably no.

Other remarks:
- a 'pull' API (where the client asks the parser for more parsing 
events/tokens) is more convenient than the SAX-like 'push' API. You 
might want to add such an API to you spec;
- having a common spec for several libs makes more sense if they can 
share common types; maybe you should use polymorphic variants instead of 
regular ones?

-- Alain