On Sat, 23 Jan 2016, Logan Kelly wrote:
Thanks Allin. How difficult would it be to develop such a
function? Or put another way, would this be a good first project
for someone, e.g. me, to try developing?
Well, yes, that might be a nice exercise. Gretl already links to
libxml2, so it would be a matter of figuring out the xpath API in
that library and "wrapping" it with a gretl function in a similar
manner to our wrapping of the json-glib API. Not a trivial job, but
doable.
There's relevant material at
http://www.xmlsoft.org/tutorial/ar01s05.html
and in gretl's plugin/json_get.c.
Just to be clear, though, this would be a C project, though I guess
you could "prototype" it using the python bindings for libxml2.
Allin