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
Re: [Caml-list] XML, XSL, eXcetera
[ Home ] [ Index: by date | by threads ]
[ Search: ]

[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
Date: -- (:)
From: Henrik Motakef <henrik.motakef@w...>
Subject: Re: [Caml-list] XML, XSL, eXcetera
Gerd Stolpmann <> writes:

> A number of people would also be (more) happy if there were a
> common SAX-like interface.

I am one of those. XML documents nowadays tend to get really big, and
I certanly don't want to store all of them in an object structure in
RAM just to filter out the stuff I'm interested in.

Then again, I really don't insinst on SAX-compatibility, I'd rather
see an OCaml-stream based interface actually, like an xml_event
Stream.t, where type xml_event = start_element of String |
character_data of string | end_element of String ...

Regarding the more general question of an "OCaml XML standard": I'd
think it would be really usefull. Especially a tight integration
(maybe with serious Camlp4 magic, I've no idea if it would be
possible) would rock hard. Just imagine something like

match node with
  | foo/bar -> do_something ()
  | bla/blub[@mumbo="jumbo"] -> something_else ()

i.e. matching XML nodes with XPathes.  Who would want to use XSLT over
this? Certainly not me, never mind the Java weenies ;-)


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