caml-list - the Caml user's mailing list
 help / color / mirror / Atom feed
From: "Richard W.M. Jones" <rich@annexia.org>
To: Julien Tesson <julien.tesson@lacl.fr>
Cc: caml-list@inria.fr
Subject: Re: [Caml-list] XPath implementation or equivalent
Date: Thu, 7 Jun 2018 09:06:12 +0100	[thread overview]
Message-ID: <20180607080612.fls2bsc7e6iufj6c@annexia.org> (raw)
In-Reply-To: <9c45e916-b434-b518-2859-e35eb3d88bb4@lacl.fr>

On Tue, Jun 05, 2018 at 12:06:06PM +0200, Julien Tesson wrote:
> Dear list,
> 
> Is anyone aware of an Ocaml implementation of Xpath or any similar tool to query an XML document ?

Yes we use libxml2 extensively in virt-v2v through some very simple
bindings (not packaged separately, but they are rather trivial).

Example usage:

https://github.com/libguestfs/libguestfs/blob/a4d5548a4560ba4c548e64bf4a161f1003760e34/v2v/parse_libvirt_xml.ml#L77

Bindings:

https://github.com/libguestfs/libguestfs/tree/master/common/mlxml

I would relicense these as LGPLv2+ if you wanted that (but to save
time don't bother asking me to relicense them as MIT or whatever so
you can steal the work from the commons).

Rich.

-- 
Richard Jones

-- 
Caml-list mailing list.  Subscription management and archives:
https://sympa.inria.fr/sympa/arc/caml-list
Beginner's list: http://groups.yahoo.com/group/ocaml_beginners
Bug reports: http://caml.inria.fr/bin/caml-bugs

  parent reply	other threads:[~2018-06-07  8:06 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2018-06-05 10:06 Julien Tesson
2018-06-05 10:40 ` Alain Frisch
2018-06-06 13:59   ` Julien Tesson
2018-06-07  8:06 ` Richard W.M. Jones [this message]
2018-06-07  9:00   ` Richard W.M. Jones

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=20180607080612.fls2bsc7e6iufj6c@annexia.org \
    --to=rich@annexia.org \
    --cc=caml-list@inria.fr \
    --cc=julien.tesson@lacl.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;
as well as URLs for NNTP newsgroup(s).