Browse thread
[announce] XStream: streaming XML transformation
-
Alain Frisch
- David MENTRE
-
Richard Jones
- Alain Frisch
[
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: | Alain Frisch <Alain.Frisch@i...> |
| Subject: | Re: [Caml-list] [announce] XStream: streaming XML transformation |
Richard Jones wrote: > I downloaded the tarball and looked at > the examples and I can't tell: can XStream transform an XML file into > something else? > > In particular we have a requirement to convert a huge XML file into > tabular CSV data on the fly (while the XML is being downloaded). The > XML file just consists of a very large number of <row>...</row> > records. That's possible with XStream: text is just a special case of XML. For instance, the following script extracts the stream of text from the input XML stream. main(_[x1] x2) -> concat(main(x1),main(x2)) main(%s x) -> %s main(x) main(()) -> () -- Alain