Browse thread
Re: [Caml-list] XML, XSL, eXcetera
[
Home
]
[ Index:
by date
|
by threads
]
[ Message by date: previous | next ] [ Message in thread: previous | next ] [ Thread: previous | next ]
[ 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 <info@gerd-stolpmann.de> 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 ;-) Regards Henrik ------------------- 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