Add docments and retrieve results using java
Tuesday, 23 February 2016 · 2 messages
KS
Kendall Shaw23 Feb 2016 01:56 #
How can I incrementally import XML documents into the database, using java? And, how can I incrementally retrieve query results and XML documents from the database, using java?
Either I am missing it, or XQJ does not allow you to store data into a database. Should I use xmldb API? Or, should I use the native API? If so how do I incrementally read and write, instead of loading everything into a string or reading and writing to/from files?
Kendall
KS
Kendall Shaw23 Feb 2016 06:39 #
It looks like the basex-test projects shows how to do what I want. Using QueryProcessor and the Xdm classes.
Kendall
Quoted text · Kendall Shaw · 7 lines
From: <basex-talk-bounces at mailman.uni-konstanz.de<mailto:basex-talk-bounces at mailman.uni-konstanz.de>> on behalf of Kendall Shaw <kendall.shaw at workday.com<mailto:kendall.shaw at workday.com>> Date: Monday, February 22, 2016 at 4:56 PM To: "basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>" <basex-talk at mailman.uni-konstanz.de<mailto:basex-talk at mailman.uni-konstanz.de>> Subject: [basex-talk] Add docments and retrieve results using java How can I incrementally import XML documents into the database, using java? And, how can I incrementally retrieve query results and XML documents from the database, using java? Either I am missing it, or XQJ does not allow you to store data into a database. Should I use xmldb API? Or, should I use the native API? If so how do I incrementally read and write, instead of loading everything into a string or reading and writing to/from files? Kendall
Written for BaseX 8.4. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery