From: David MENTRE <dmentre@linux-france.org>
To: "Nicolas Cannasse" <warplayer@free.fr>
Cc: <caml-list@inria.fr>, "David MENTRE" <dmentre@linux-france.org>
Subject: Re: [Caml-list] Looking for OCaml code to load & save XML files
Date: Sun, 29 Feb 2004 18:46:32 +0100 [thread overview]
Message-ID: <871xodlqx3.fsf@linux-france.org> (raw)
In-Reply-To: <008301c3fe0f$0b410180$ef01a8c0@warp> (Nicolas Cannasse's message of "Sat, 28 Feb 2004 16:24:58 +0100")
Hello Nicolas,
"Nicolas Cannasse" <warplayer@free.fr> writes:
> My advice : first experiment XmlLight and then switch to PXP if you lack
> features.
>
> http://tech.motion-twin.com/xmllight
I like you advice. I've looked at your library and it's conciseness and
lack of dependencies pleases me.
BTW, I need to save some short binary data in the XML format (e.g. MD5
128bits hash). Therefore, I would like to transform from/to an OCaml
binary string type into a string suitable for printing in an XML file
(in a CDATA field). Which code would you recommend to do that the "XML
way"? At first sight, I intend to use Gerd's code to encode/decode MIME
and base64 strings.
As another side note, I also intend to read and write gziped XML files,
using Xavier's camlzip package. As your module uses Lexing.from_* to get
input file, I'll probably add an SFunction source type to be able to use
Lexing.from_function. In the same way, I'll probably modify your output
functions (Xml.to_string) to be able to ouput into a Gzip.out_channel
without producing the whole XML file in a string.
I'll gladly accept any advice on how to use your code,
Yours,
d.
--
David Mentré <dmentre@linux-france.org>
-------------------
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
next prev parent reply other threads:[~2004-02-29 17:46 UTC|newest]
Thread overview: 10+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-02-28 13:44 David MENTRE
2004-02-28 15:24 ` Nicolas Cannasse
2004-02-28 15:38 ` Benjamin Geer
2004-02-28 15:44 ` Nicolas Cannasse
2004-02-28 18:50 ` Stefano Zacchiroli
2004-02-28 20:02 ` Giuseppe Castagna
2004-02-29 17:53 ` Claudio Sacerdoti Coen
2004-02-29 17:46 ` David MENTRE [this message]
2004-02-29 18:13 ` Nicolas Cannasse
2004-03-01 8:09 ` lehalle@miriad
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=871xodlqx3.fsf@linux-france.org \
--to=dmentre@linux-france.org \
--cc=caml-list@inria.fr \
--cc=warplayer@free.fr \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox