Using python to query BaseX server on localhost

Monday, 8 June 2015 · 1 message
CG
Christian Grün8 Jun 2015 22:05 #
Hi Werner,
Quoted text · 2 lines
> I now want to query the database with BaseXClient.py using a list from > stdout from another script. How do I do that in python?
Have you already tried the (few) examples we are providing (e.g. [1, 2])?
Quoted text · 4 lines
> What I want to accomplish is use the variables in the list from the other > script to search through the XML files in BaseX and if the variables are > found in an XML file, text must be returned from within > "<name>example</name>" in the same file.
I think we need more information on what you mean with "search through the XML files". Could you provide us the Python and XPath/XQuery snippets you have written so far? Best, Christian [1] https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/python3/QueryExample.py [2] https://github.com/BaseXdb/basex/blob/master/basex-api/src/main/python3/QueryBindExample.py

⚡Generated with XQuery