From: Julien Tesson <julien.tesson@lacl.fr>
To: Alain Frisch <alain.frisch@lexifi.com>, caml-list@inria.fr
Subject: Re: [Caml-list] XPath implementation or equivalent
Date: Wed, 6 Jun 2018 15:59:07 +0200 [thread overview]
Message-ID: <65b011dc-a42d-c7ec-440b-61f8dc4a8bf0@lacl.fr> (raw)
In-Reply-To: <8cf6fd2d-ec81-643d-7a1f-9f419438acaf@lexifi.com>
Thanks Alain for your input,
part of your XPath evaluator still compile so I might give it a try later, but as the xpath expression lexer use wlex which is no longer available, it's not straight forward.
Being unfamiliar with the wlex replacement ulex, I don't know if it would be a long work to update the lexer, but it's probably more than what I can afford right now, unfortunately.
pxp-xpath doesn't compile anymore, their is a typing error about a definition of type containing a cycle.
If anyone can think about an other library that would help querying XML documents, I'm interested ;)
regards,
Julien
Le 05/06/2018 à 12:40, Alain Frisch a écrit :
> You might have a look at http://alain.frisch.fr/soft#xpath , which implements a naive XPath evaluator (written 18 years ago, and never used for anything serious).
>
> https://www.orcaware.com/pipermail/ocaml-pxp-users/2009-September/000099.html also refers to an XPath evaluator in PXP.
>
> Alain
>
> On 05/06/2018 12:06, Julien Tesson wrote:
>> Dear list,
>>
>> Is anyone aware of an Ocaml implementation of Xpath or any similar tool to query an XML document ?
>> I found XML parsers via Opam, like pxp, but they don't seem to come with a querying library.
>> Thank you for any input on this !
>>
>> Julien
>>
>>
next prev parent reply other threads:[~2018-06-06 13:59 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 [this message]
2018-06-07 8:06 ` Richard W.M. Jones
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=65b011dc-a42d-c7ec-440b-61f8dc4a8bf0@lacl.fr \
--to=julien.tesson@lacl.fr \
--cc=alain.frisch@lexifi.com \
--cc=caml-list@inria.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