How to store dynamically created xml file in basex through java
Friday, 25 July 2014 · 2 messages
MP
manish payasi25 Jul 2014 14:21 #
Hi guys,
I am new in base x and i got some problem so i would like to ask some questions because i didn't get the solution from anywhere and someone recommended me to raise the questions here.
I know the way to create the xml file and store into disk after that we can store these xml files into basex database 'db' after went through official BaseX tutorial .
I have attached my two class file through which i am creating and storing xml file into BaseX database,but it's not a feasible solution.
So my question is:
*How to create xml file dynamically and store into database directly rather than storing into my disk?????*
Please revert back to me as soon as possible.
Second question i'll ask in another mail.
Thanks and Regards
manish payasi
PS
Paul Swennenhuis25 Jul 2014 14:53 #
You can use the INSERT or REPLACE command inside an XQuery that operates on that database, Manish.
Look for some examples here:
https://github.com/BaseXdb/basex/blob/master/basex-examples/src/main/java/org/basex/examples/local/WikiExample.java
Paul
Quoted text · manish payasi · 26 lines
> Hi guys, > > I am new in base x and i got some problem so i would like to ask some > questions because i didn't get the solution from anywhere and someone > recommended me to raise the questions here. > > I know the way to create the xml file and store into disk after that > we can store these xml files into basex database 'db' after went > through official BaseX tutorial . > > I have attached my two class file through which i am creating and > storing xml file into BaseX database,but it's not a feasible solution. > > So my question is: > > *How to create xml file dynamically and store into database directly > rather than storing into my disk?????* > > Please revert back to me as soon as possible. > > Second question i'll ask in another mail. > > Thanks and Regards > > manish payasi >
Written for BaseX 7.9. BaseX may have changed since: please check the current documentation.
⚡Generated with XQuery